Last active
September 4, 2017 12:24
-
-
Save milkmidi/31f110434ba843c5f70d611c8b1c7eb9 to your computer and use it in GitHub Desktop.
webpack pug-html-loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = JSON.stringify({data:{myVar:'奶綠茶'},pretty:true}); | |
new HtmlWebpackPlugin({ | |
template: `!!html-loader!pug-html-loader${data}!./src/html/index.pug`, | |
filename: 'index.html', | |
chunks: ['app', 'vendor', 'manifest'], | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment