-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
34 lines (29 loc) · 893 Bytes
/
webpack.dev.config.js
File metadata and controls
34 lines (29 loc) · 893 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
var { merge } = require('webpack-merge');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
// var commonConfig = require('./webpack.common.js');
// You can change this part to try out both with angular-template-loader or
// @ngtools/webpack
var HtmlWebpackPlugin = require('html-webpack-plugin');
var commonConfig = require('./ngtools-webpack.js');
var helpers = require('./config/helpers.js');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(commonConfig, {
devtool: 'cheap-module-eval-source-map',
output: {
path: helpers.root('dist'),
publicPath: '/',
filename: '[name].js',
chunkFilename: '[id].[hash].chunk.js'
},
devServer: {
historyApiFallback: true,
stats: 'minimal',
port: 4210,
hot: true
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html'
}),
]
});