Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Commit

Permalink
longterm hashing FTW 🎆
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jul 29, 2016
1 parent d157841 commit 4dcfaa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "1.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>VanillaJS • TodoMVC</title>
<%=htmlWebpackPlugin.files.webpackManifest%>
</head>
<body>
<section class="todoapp">
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const {resolve} = require('path')
const webpack = require('webpack')
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')

Expand Down Expand Up @@ -28,8 +29,9 @@ module.exports = env => {
new webpack.ProgressPlugin({
profile: ifProd(),
}),
ifProd(new InlineManifestWebpackPlugin()),
ifProd(new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
names: ['vendor', 'manifest'],
})),
new HtmlWebpackPlugin({
template: './index.html',
Expand Down

0 comments on commit 4dcfaa9

Please sign in to comment.