diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-02-20 09:06:56 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-02-20 12:52:39 +0100 |
commit | 90dcefb94f2110b4048400d7e4befc0f02178955 (patch) | |
tree | 33477b6913650c1c01eebbaaf73715cd08d65d03 /settings/webpack.js | |
parent | 7f49a2cb63d979932890dd9fb296e9b8f27405cd (diff) | |
download | nextcloud-server-90dcefb94f2110b4048400d7e4befc0f02178955.tar.gz nextcloud-server-90dcefb94f2110b4048400d7e4befc0f02178955.zip |
Move settings to main webpack
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/webpack.js')
-rw-r--r-- | settings/webpack.js | 50 |
1 files changed, 50 insertions, 0 deletions
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'] + } +} |