diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-09 18:39:40 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-09 18:42:52 +0200 |
commit | e5fefd1338b9cf493ac9be7f4b00f27e14b73d04 (patch) | |
tree | ad2eb8286d73a05b4d375d7e2b5fe5c6ad76666e /apps/workflowengine/webpack.js | |
parent | 38efad788194f3a700ac7a6d86708e0968d86e1b (diff) | |
download | nextcloud-server-e5fefd1338b9cf493ac9be7f4b00f27e14b73d04.tar.gz nextcloud-server-e5fefd1338b9cf493ac9be7f4b00f27e14b73d04.zip |
webpackify workflowengine
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/webpack.js')
-rw-r--r-- | apps/workflowengine/webpack.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/workflowengine/webpack.js b/apps/workflowengine/webpack.js new file mode 100644 index 00000000000..c35a63d4d5b --- /dev/null +++ b/apps/workflowengine/webpack.js @@ -0,0 +1,37 @@ +const path = require('path'); + +module.exports = { + entry: path.join(__dirname, 'src', 'workflowengine.js'), + output: { + path: path.resolve(__dirname, './js'), + publicPath: '/js/', + filename: 'workflowengine.js', + }, + module: { + rules: [ + { + test: /\.css$/, + use: ['style-loader', 'css-loader'] + }, + { + test: /\.scss$/, + use: ['style-loader', 'css-loader', 'sass-loader'] + }, + { + test: /\.js$/, + loader: 'babel-loader', + exclude: /node_modules/ + }, + { + test: /\.(png|jpg|gif|svg)$/, + loader: 'file-loader', + options: { + name: '[name].[ext]?[hash]' + } + } + ] + }, + resolve: { + extensions: ['*', '.js'] + } +}; |