forked from boranton/testcafe-workshop
longterm hashing FTW 🎆
This commit is contained in:
parent
c7fe4d450f
commit
13c7d57ef4
@ -24,6 +24,7 @@
|
|||||||
"ghooks": "1.3.2",
|
"ghooks": "1.3.2",
|
||||||
"html-webpack-plugin": "2.22.0",
|
"html-webpack-plugin": "2.22.0",
|
||||||
"http-server": "0.9.0",
|
"http-server": "0.9.0",
|
||||||
|
"inline-manifest-webpack-plugin": "3.0.1",
|
||||||
"karma": "1.1.2",
|
"karma": "1.1.2",
|
||||||
"karma-chai": "0.1.0",
|
"karma-chai": "0.1.0",
|
||||||
"karma-chrome-launcher": "1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>VanillaJS • TodoMVC</title>
|
<title>VanillaJS • TodoMVC</title>
|
||||||
|
<%=htmlWebpackPlugin.files.webpackManifest%>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<section class="todoapp">
|
<section class="todoapp">
|
||||||
|
|||||||
@ -3,6 +3,7 @@ const {resolve} = require('path')
|
|||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
|
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
|
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin')
|
||||||
const webpackValidator = require('webpack-validator')
|
const webpackValidator = require('webpack-validator')
|
||||||
const {getIfUtils, removeEmpty} = require('webpack-config-utils')
|
const {getIfUtils, removeEmpty} = require('webpack-config-utils')
|
||||||
|
|
||||||
@ -28,8 +29,9 @@ module.exports = env => {
|
|||||||
},
|
},
|
||||||
plugins: removeEmpty([
|
plugins: removeEmpty([
|
||||||
new ProgressBarPlugin(),
|
new ProgressBarPlugin(),
|
||||||
|
ifProd(new InlineManifestWebpackPlugin()),
|
||||||
ifProd(new webpack.optimize.CommonsChunkPlugin({
|
ifProd(new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'vendor',
|
names: ['vendor', 'manifest'],
|
||||||
})),
|
})),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './index.html',
|
template: './index.html',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user