@@ -146,15 +146,15 @@ With that said, let's run `npx webpack` with our script as the [entry point](/co
146
146
``` bash
147
147
npx webpack src/index.js dist/bundle.js
148
148
149
- Hash: ff6c1d39b26f89b3b7bb
150
- Version: webpack 2.2.0
151
- Time: 385ms
149
+ Hash: 857f878815ce63ad5b4f
150
+ Version: webpack 3.9.1
151
+ Time: 332ms
152
152
Asset Size Chunks Chunk Names
153
153
bundle.js 544 kB 0 [emitted] [big] main
154
- [0] ./~/lodash/lodash .js 540 kB {0} [built]
155
- [1 ] (webpack)/buildin/global.js 509 bytes {0} [built]
156
- [2 ] (webpack)/buildin/module.js 517 bytes {0} [built]
157
- [3] ./src/index.js 278 bytes {0} [built]
154
+ [0] ./src/index .js 222 bytes {0} [built]
155
+ [2 ] (webpack)/buildin/global.js 509 bytes {0} [built]
156
+ [3 ] (webpack)/buildin/module.js 517 bytes {0} [built]
157
+ + 1 hidden module
158
158
```
159
159
160
160
T> Your output may vary a bit, but if the build is successful then you are good to go.
@@ -206,15 +206,15 @@ Now, let's run the build again but instead using our new configuration:
206
206
``` bash
207
207
npx webpack --config webpack.config.js
208
208
209
- Hash: ff6c1d39b26f89b3b7bb
210
- Version: webpack 2.2.0
211
- Time: 390ms
209
+ Hash: 857f878815ce63ad5b4f
210
+ Version: webpack 3.9.1
211
+ Time: 298ms
212
212
Asset Size Chunks Chunk Names
213
213
bundle.js 544 kB 0 [emitted] [big] main
214
- [0] ./~/lodash/lodash .js 540 kB {0} [built]
215
- [1 ] (webpack)/buildin/global.js 509 bytes {0} [built]
216
- [2 ] (webpack)/buildin/module.js 517 bytes {0} [built]
217
- [3] ./src/index.js 278 bytes {0} [built]
214
+ [0] ./src/index .js 222 bytes {0} [built]
215
+ [2 ] (webpack)/buildin/global.js 509 bytes {0} [built]
216
+ [3 ] (webpack)/buildin/module.js 517 bytes {0} [built]
217
+ + 1 hidden module
218
218
```
219
219
220
220
W> Note that when calling ` webpack ` via its path on windows, you must use backslashes instead, e.g. ` node_modules\.bin\webpack --config webpack.config.js ` .
@@ -247,15 +247,15 @@ Now run the following command and see if your script alias works:
247
247
``` bash
248
248
npm run build
249
249
250
- Hash: ff6c1d39b26f89b3b7bb
251
- Version: webpack 2.2.0
252
- Time: 390ms
250
+ Hash: 857f878815ce63ad5b4f
251
+ Version: webpack 3.9.1
252
+ Time: 294ms
253
253
Asset Size Chunks Chunk Names
254
254
bundle.js 544 kB 0 [emitted] [big] main
255
- [0] ./~/lodash/lodash .js 540 kB {0} [built]
256
- [1 ] (webpack)/buildin/global.js 509 bytes {0} [built]
257
- [2 ] (webpack)/buildin/module.js 517 bytes {0} [built]
258
- [3] ./src/index.js 278 bytes {0} [built]
255
+ [0] ./src/index .js 222 bytes {0} [built]
256
+ [2 ] (webpack)/buildin/global.js 509 bytes {0} [built]
257
+ [3 ] (webpack)/buildin/module.js 517 bytes {0} [built]
258
+ + 1 hidden module
259
259
```
260
260
261
261
T> Custom parameters can be passed to webpack by adding two dashes between the ` npm run build ` command and your parameters, e.g. ` npm run build -- --colors ` .
0 commit comments