forked from Sage-Bionetworks/BridgeResearcherUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (26 loc) · 815 Bytes
/
webpack.config.js
File metadata and controls
27 lines (26 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
var CompressionPlugin = require("compression-webpack-plugin");
/**
* Firefox throws errors when you run this app in the webpack dev server environment,
* these errors are not present if you remove the /webpack-dev-server/ pack and give up
* hot reloading.
*/
module.exports = {
entry: './app/src/main.js',
output: {
path: './app/dist',
filename: 'bundle.js'
},
plugins: [
new CompressionPlugin({asset: "{file}.gz", algorithm: "gzip", regExp: /\.js$/, threshold: 10240, minRatio: 0.8})
],
module: {
loaders: [
{ test: /\.(scss|css)$/, loader: "style!css!sass" },
{ test: /\.html$/, loader: "html?removeComments=false" }
]
},
resolve: {
extensions: ['', '.css', '.js', '.html','.scss']
}
}