From 90dcefb94f2110b4048400d7e4befc0f02178955 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 20 Feb 2019 09:06:56 +0100 Subject: Move settings to main webpack Signed-off-by: Roeland Jago Douma --- settings/webpack.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 settings/webpack.js (limited to 'settings/webpack.js') diff --git a/settings/webpack.js b/settings/webpack.js new file mode 100644 index 00000000000..030e93afbfd --- /dev/null +++ b/settings/webpack.js @@ -0,0 +1,50 @@ +const path = require('path') +const { VueLoaderPlugin } = require('vue-loader'); + +module.exports = { + entry: { + 'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'), + 'settings-admin-security': path.join(__dirname, '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: [ + 'vue-style-loader', 'css-loader', 'sass-loader' + ], + }, + { + test: /\.vue$/, + loader: 'vue-loader' + }, + { + test: /\.js$/, + loader: 'babel-loader', + exclude: /node_modules/ + }, + ] + }, + plugins: [ + new VueLoaderPlugin() + ], + resolve: { + extensions: ['*', '.js', '.vue', '.json'] + } +} -- cgit v1.2.3