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-11-05 18:02:32 +03: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 18:20:39 +03:00
|
|
|
'vue-style-loader', 'css-loader', 'sass-loader'
|
2018-11-05 18:02:32 +03: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 19:46:34 +03:00
|
|
|
}
|