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

Commit 4dcfaa9

Browse files
author
Kent C. Dodds
committed
longterm hashing FTW 🎆
1 parent d157841 commit 4dcfaa9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"ghooks": "1.3.2",
2525
"html-webpack-plugin": "2.22.0",
2626
"http-server": "0.9.0",
27+
"inline-manifest-webpack-plugin": "3.0.1",
2728
"karma": "1.1.1",
2829
"karma-chai": "0.1.0",
2930
"karma-chrome-launcher": "1.0.1",

‎src/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>VanillaJS • TodoMVC</title>
6+
<%=htmlWebpackPlugin.files.webpackManifest%>
67
</head>
78
<body>
89
<section class="todoapp">

‎webpack.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const {resolve} = require('path')
22
const webpack = require('webpack')
33
const HtmlWebpackPlugin = require('html-webpack-plugin')
4+
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin')
45
const webpackValidator = require('webpack-validator')
56
const {getIfUtils, removeEmpty} = require('webpack-config-utils')
67

@@ -28,8 +29,9 @@ module.exports = env => {
2829
new webpack.ProgressPlugin({
2930
profile: ifProd(),
3031
}),
32+
ifProd(new InlineManifestWebpackPlugin()),
3133
ifProd(new webpack.optimize.CommonsChunkPlugin({
32-
name: 'vendor',
34+
names: ['vendor', 'manifest'],
3335
})),
3436
new HtmlWebpackPlugin({
3537
template: './index.html',

0 commit comments

Comments
 (0)