2018-05-18 14:39:34 +00:00
|
|
|
const path = require('path')
|
2018-06-06 17:22:35 +00:00
|
|
|
const { VueLoaderPlugin } = require('vue-loader');
|
2018-03-09 16:46:34 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/main.js',
|
|
|
|
output: {
|
2018-06-07 06:35:00 +00:00
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/',
|
2018-06-12 08:23:00 +00:00
|
|
|
filename: 'settings-vue.js'
|
2018-03-09 16:46:34 +00:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
'css-loader'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
use: [
|
2018-06-06 17:22:35 +00:00
|
|
|
'css-loader',
|
|
|
|
'sass-loader'
|
2018-03-09 16:46:34 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2018-06-06 17:22:35 +00:00
|
|
|
plugins: [
|
|
|
|
new VueLoaderPlugin()
|
|
|
|
],
|
2018-03-09 16:46:34 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.esm.js'
|
|
|
|
},
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
2018-05-18 14:39:34 +00:00
|
|
|
}
|
2018-03-09 16:46:34 +00:00
|
|
|
}
|