-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
40 lines (23 loc) · 1.04 KB
/
webpack.config.js
File metadata and controls
40 lines (23 loc) · 1.04 KB
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
// simple Configuration-
let config={
// The module where webpack should start.
// entry is an object which defines the three bundles: old version
// entry: {
// vendor: './src/vendor.ts',
// polyfills: './src/polyfills.ts',
// main: './src/main.ts'
// }
// mode: 'development',old version
entry:'./index.js',
// where webpack emits the bundles it creates. you can also override the defaults entry/output points.
// "scripts": {
// "dev": "webpack --mode development ./foo/src/js/index.js --output ./foo/main.js",
// "build": "webpack --mode production ./foo/src/js/index.js --output ./foo/main.js"
// }
output:{
// var path = require('path');
// path: path.resolve(__dirname, 'dist'),
filename:'output.js' // // After running webpack above code all your javascript code in file 'output.js'
}
}
module.exports=config; // in case if you have multiple configurations [ serverConfig, clientConfig ];