File tree Expand file tree Collapse file tree 4 files changed +19
-11
lines changed
Expand file tree Collapse file tree 4 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ config.plugins = (config.plugins || []).concat([
2525 // https://github.com/ampedandwired/html-webpack-plugin
2626 new HtmlWebpackPlugin ( {
2727 filename : 'index.html' ,
28- template : 'src/index.html'
28+ template : 'src/index.html' ,
29+ inject : true
2930 } )
3031] )
3132
Original file line number Diff line number Diff line change @@ -50,7 +50,15 @@ config.plugins = (config.plugins || []).concat([
5050 // see https://github.com/ampedandwired/html-webpack-plugin
5151 new HtmlWebpackPlugin ( {
5252 filename : '../index.html' ,
53- template : 'src/index.html'
53+ template : 'src/index.html' ,
54+ inject : true ,
55+ minify : {
56+ removeComments : true ,
57+ collapseWhitespace : true ,
58+ removeAttributeQuotes : true
59+ // more options:
60+ // https://github.com/kangax/html-minifier#options-quick-reference
61+ }
5462 } )
5563] )
5664
Original file line number Diff line number Diff line change 1111 "test" : " karma start build/karma.conf.js --single-run"
1212 },
1313 "dependencies" : {
14- "vue" : " ^1.0.15 "
14+ "vue" : " ^1.0.16 "
1515 },
1616 "devDependencies" : {
1717 "babel-core" : " ^6.0.0" ,
2727 "eslint-loader" : " ^1.2.0" ,
2828 "eventsource-polyfill" : " ^0.9.6" ,
2929 "express" : " ^4.13.3" ,
30- "extract-text-webpack-plugin" : " ^0.9 .1" ,
30+ "extract-text-webpack-plugin" : " ^1.0 .1" ,
3131 "file-loader" : " ^0.8.4" ,
3232 "function-bind" : " ^1.0.2" ,
33- "html-webpack-plugin" : " ^1.7.0 " ,
33+ "html-webpack-plugin" : " ^2.8.1 " ,
3434 "inject-loader" : " ^2.0.1" ,
3535 "jasmine-core" : " ^2.4.1" ,
3636 "json-loader" : " ^0.5.4" ,
3737 "karma" : " ^0.13.15" ,
3838 "karma-jasmine" : " ^0.3.6" ,
39- "karma-phantomjs-launcher" : " ^0.2.1 " ,
39+ "karma-phantomjs-launcher" : " ^1.0.0 " ,
4040 "karma-spec-reporter" : " 0.0.23" ,
4141 "karma-webpack" : " ^1.7.0" ,
42- "phantomjs" : " ^1.9.19 " ,
42+ "phantomjs-prebuilt " : " ^2.1.3 " ,
4343 "rimraf" : " ^2.5.0" ,
4444 "url-loader" : " ^0.5.7" ,
4545 "vue-hot-reload-api" : " ^1.2.0" ,
Original file line number Diff line number Diff line change 22< html >
33 < head >
44 < meta charset ="utf-8 ">
5- < title > {{ name }}</ title > {% for (var css in o.htmlWebpackPlugin.files.css) { %}
6- < link href ="{%=o.htmlWebpackPlugin.files.css[css] %} " rel ="stylesheet "> {% } %}
5+ < title > {{ name }}</ title >
76 </ head >
87 < body >
9- < app > </ app > {% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %}
10- < script src =" {%=o.htmlWebpackPlugin. files.chunks[chunk].entry %} " > </ script > {% } %}
8+ < app > </ app >
9+ <!-- built files will be auto injected -->
1110 </ body >
1211</ html >
You can’t perform that action at this time.
0 commit comments