summaryrefslogtreecommitdiffstats
path: root/settings/webpack.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-20 09:06:56 +0100
committerJulius Härtl <jus@bitgrid.net>2019-02-20 12:52:39 +0100
commit90dcefb94f2110b4048400d7e4befc0f02178955 (patch)
tree33477b6913650c1c01eebbaaf73715cd08d65d03 /settings/webpack.js
parent7f49a2cb63d979932890dd9fb296e9b8f27405cd (diff)
downloadnextcloud-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.js50
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']
+ }
+}