forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
36 lines (34 loc) · 800 Bytes
/
Copy pathwebpack.dev.config.js
File metadata and controls
36 lines (34 loc) · 800 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
35
36
'use strict';
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'none',
module: {
rules: [
{
test: /\.png$/i,
type: 'asset/resource'
}
]
},
target: ['web', 'es2020'],
resolve: {
extensions: ['.js', '.json']
},
entry: {
'heft-test-A': path.join(__dirname, 'lib', 'indexA.js'),
'heft-test-B': path.join(__dirname, 'lib', 'indexB.js')
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name]_[contenthash].js',
chunkFilename: '[id].[name]_[contenthash].js',
assetModuleFilename: '[name]_[contenthash][ext][query]'
},
devtool: 'source-map',
optimization: {
minimize: false,
minimizer: []
},
plugins: [new HtmlWebpackPlugin()]
};