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