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: {
|
2019-02-20 11:06:56 +03:00
|
|
|
'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'),
|
|
|
|
'settings-admin-security': path.join(__dirname, 'src', 'main-admin-security')
|
2018-11-05 18:02:32 +03: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 18:20:39 +03:00
|
|
|
'vue-style-loader', 'css-loader', 'sass-loader'
|
2018-11-05 18:02:32 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
2019-02-17 22:19:32 +03:00
|
|
|
loader: 'vue-loader'
|
2018-11-05 18:02:32 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new VueLoaderPlugin()
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
2018-03-09 19:46:34 +03:00
|
|
|
}
|