From 58ecc7d000e682df51c14562f369900dcd0f1eec Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 11 Feb 2019 11:27:51 +0100 Subject: Move files_trashbin to webpack Combine the 2 js files and the scss. This saves compiling the scss on the go. And going via Nextcloud storage to obtain it. Signed-off-by: Roeland Jago Douma --- apps/files_trashbin/webpack.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 apps/files_trashbin/webpack.js (limited to 'apps/files_trashbin/webpack.js') diff --git a/apps/files_trashbin/webpack.js b/apps/files_trashbin/webpack.js new file mode 100644 index 00000000000..2261fb08d36 --- /dev/null +++ b/apps/files_trashbin/webpack.js @@ -0,0 +1,37 @@ +const path = require('path'); + +module.exports = { + entry: path.join(__dirname, 'src', 'files_trashbin.js'), + output: { + path: path.resolve(__dirname, './js'), + publicPath: '/js/', + filename: 'files_trashbin.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'] + } +}; -- cgit v1.2.3