2018-12-14 13:03:09 +03:00
|
|
|
const path = require('path');
|
2018-06-07 09:35:00 +03:00
|
|
|
const { VueLoaderPlugin } = require('vue-loader');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-12-14 13:03:09 +03:00
|
|
|
entry: path.join(__dirname, 'src', 'init.js'),
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/js/',
|
|
|
|
filename: 'updatenotification.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
2019-01-10 22:53:00 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.s[a|c]ss$/,
|
|
|
|
loader: 'style-loader!css-loader!sass-loader'
|
2018-12-14 13:03:09 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [new VueLoaderPlugin()],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
|
|
|
};
|