longterm hashing FTW 🎆

This commit is contained in:
Kent C. Dodds 2016-07-29 11:21:10 -06:00
parent c7fe4d450f
commit 13c7d57ef4
3 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,7 @@
"ghooks": "1.3.2",
"html-webpack-plugin": "2.22.0",
"http-server": "0.9.0",
"inline-manifest-webpack-plugin": "3.0.1",
"karma": "1.1.2",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "1.0.1",

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>VanillaJS • TodoMVC</title>
<%=htmlWebpackPlugin.files.webpackManifest%>
</head>
<body>
<section class="todoapp">

View File

@ -3,6 +3,7 @@ const {resolve} = require('path')
const webpack = require('webpack')
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin')
const webpackValidator = require('webpack-validator')
const {getIfUtils, removeEmpty} = require('webpack-config-utils')
@ -28,8 +29,9 @@ module.exports = env => {
},
plugins: removeEmpty([
new ProgressBarPlugin(),
ifProd(new InlineManifestWebpackPlugin()),
ifProd(new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
names: ['vendor', 'manifest'],
})),
new HtmlWebpackPlugin({
template: './index.html',