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: {
|
|
|
|
'settings-apps-users-management': './src/main-apps-users-management',
|
|
|
|
'settings-admin-security': './src/main-admin-security'
|
|
|
|
},
|
|
|
|
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$/,
|
|
|
|
loader: 'vue-loader',
|
|
|
|
options: {
|
|
|
|
hotReload: false // disables Hot Reload
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new VueLoaderPlugin()
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
2018-03-09 16:46:34 +00:00
|
|
|
}
|