forked from pubkey/rxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dev.js
More file actions
executable file
·32 lines (28 loc) · 883 Bytes
/
webpack.config.dev.js
File metadata and controls
executable file
·32 lines (28 loc) · 883 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
const path = require('path');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.config.common.js'); // the settings that are common to prod and dev
//
module.exports = function(options) {
const ENV = options.ENV || 'development';
const PORT = options.PORT || 8888;
return webpackMerge(commonConfig, {
// debug: true,
devtool: 'source-map',
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
'ENV': JSON.stringify(ENV)
})
],
resolve: {
extensions: ['.js', '.ts']
},
devServer: {
port: PORT,
// hot: true,
inline: true,
historyApiFallback: true
},
});
};