-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
34 lines (30 loc) · 868 Bytes
/
webpack.config.js
File metadata and controls
34 lines (30 loc) · 868 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
28
29
30
31
32
33
34
/* eslint-env node */
/* eslint-disable one-var, no-var */
var i = require('icepick'),
path = require('path'),
webpack = require('webpack'),
webpackConfigBase = require('./webpack.config.base');
var DIST_PATH = 'dist';
/* eslint-enable one-var */
webpackConfigBase = i.freeze(webpackConfigBase);
module.exports = i.thaw(i.merge(webpackConfigBase, {
entry: {
app: 'index.js',
vendor: webpackConfigBase.entry.vendor.concat(
'materialize-css/dist/css/materialize.css',
'materialize-css/dist/js/materialize.js'
)
},
output: {path: path.resolve(DIST_PATH)},
plugins: webpackConfigBase.plugins.concat(
new webpack.DefinePlugin({
'process.env': JSON.stringify(
i.assign(webpackConfigBase.configVals, {
NODE_ENV: 'production',
ASSET_PATH: ''
})
)
})
),
devtool: 'none'
}));