2018-06-13 11:16:49 +00:00
|
|
|
const path = require('path');
|
2018-06-14 13:27:57 +00:00
|
|
|
const { VueLoaderPlugin } = require('vue-loader');
|
2018-06-13 11:16:49 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2018-06-14 13:27:57 +00:00
|
|
|
entry: path.join(__dirname, 'src', 'main.js'),
|
2018-06-13 11:16:49 +00:00
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/js/',
|
|
|
|
filename: 'accessibility.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [new VueLoaderPlugin()],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
|
|
|
};
|