aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/webpack.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-03 19:56:44 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-13 22:20:07 +0100
commit7f886541473fb73591a8930e322250cdc6496bfc (patch)
treec0025ae7b41bece3a8c6897a093f5ceb6d5d57f7 /apps/files_versions/webpack.js
parent53e8957a556af086ce66b8eba45f0013391d7f0d (diff)
downloadnextcloud-server-7f886541473fb73591a8930e322250cdc6496bfc.tar.gz
nextcloud-server-7f886541473fb73591a8930e322250cdc6496bfc.zip
Move of files_versions to webpack
* Move CSS into bundle * Old merged.json no longer needed! * No need to load the style still Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/webpack.js')
-rw-r--r--apps/files_versions/webpack.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/files_versions/webpack.js b/apps/files_versions/webpack.js
new file mode 100644
index 00000000000..4b0f1e4f6bf
--- /dev/null
+++ b/apps/files_versions/webpack.js
@@ -0,0 +1,37 @@
+const path = require('path');
+
+module.exports = {
+ entry: path.join(__dirname, 'src', 'files_versions.js'),
+ output: {
+ path: path.resolve(__dirname, 'js'),
+ publicPath: '/js/',
+ filename: 'files_versions.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']
+ }
+};