2018-12-14 10:03:09 +00:00
|
|
|
const path = require('path');
|
2018-06-07 06:35:00 +00:00
|
|
|
const { VueLoaderPlugin } = require('vue-loader');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-12-14 10:03:09 +00: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 19:53:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.s[a|c]ss$/,
|
|
|
|
loader: 'style-loader!css-loader!sass-loader'
|
2018-12-14 10:03:09 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [new VueLoaderPlugin()],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
|
|
|
};
|