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 = {
|
2018-11-05 15:02:32 +00:00
|
|
|
entry: {
|
2019-02-20 08:06:56 +00:00
|
|
|
'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'),
|
2019-02-26 18:43:59 +00:00
|
|
|
'settings-admin-security': path.join(__dirname, 'src', 'main-admin-security'),
|
|
|
|
'settings-personal-security': path.join(__dirname, 'src', 'main-personal-security')
|
2018-11-05 15:02:32 +00:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/',
|
|
|
|
filename: 'vue-[name].js'
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
splitChunks: {
|
|
|
|
automaticNameDelimiter: '-',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
'vue-style-loader', 'css-loader'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
use: [
|
2018-09-12 15:20:39 +00:00
|
|
|
'vue-style-loader', 'css-loader', 'sass-loader'
|
2018-11-05 15:02:32 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
2019-02-17 19:19:32 +00:00
|
|
|
loader: 'vue-loader'
|
2018-11-05 15:02:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new VueLoaderPlugin()
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
2018-03-09 16:46:34 +00:00
|
|
|
}
|