This repository was archived by the owner on Feb 7, 2021. It is now read-only.
File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 24
24
"ghooks" : " 1.3.2" ,
25
25
"html-webpack-plugin" : " 2.22.0" ,
26
26
"http-server" : " 0.9.0" ,
27
+ "inline-manifest-webpack-plugin" : " 3.0.1" ,
27
28
"karma" : " 1.1.1" ,
28
29
"karma-chai" : " 0.1.0" ,
29
30
"karma-chrome-launcher" : " 1.0.1" ,
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< title > VanillaJS • TodoMVC</ title >
6
+ < %=htmlWebpackPlugin.files.webpackManifest%>
6
7
</ head >
7
8
< body >
8
9
< section class ="todoapp ">
Original file line number Diff line number Diff line change 1
1
const { resolve} = require ( 'path' )
2
2
const webpack = require ( 'webpack' )
3
3
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
4
+ const InlineManifestWebpackPlugin = require ( 'inline-manifest-webpack-plugin' )
4
5
const webpackValidator = require ( 'webpack-validator' )
5
6
const { getIfUtils, removeEmpty} = require ( 'webpack-config-utils' )
6
7
@@ -28,8 +29,9 @@ module.exports = env => {
28
29
new webpack . ProgressPlugin ( {
29
30
profile : ifProd ( ) ,
30
31
} ) ,
32
+ ifProd ( new InlineManifestWebpackPlugin ( ) ) ,
31
33
ifProd ( new webpack . optimize . CommonsChunkPlugin ( {
32
- name : 'vendor' ,
34
+ names : [ 'vendor' , 'manifest' ] ,
33
35
} ) ) ,
34
36
new HtmlWebpackPlugin ( {
35
37
template : './index.html' ,
You can’t perform that action at this time.
0 commit comments