Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (staticBuild) {
- plugins.push(StaticSiteGenerator);
- } else {
- plugins.push(
- new HtmlWebpackPlugin({
- template: 'src/views/layouts/foo.jsx',
- inject: false
- })
- )
- }
- // Or...
- plugins.push(
- staticBuild ? StaticSiteGenerator : new HtmlWebpackPlugin({
- template: 'src/views/layouts/foo.jsx',
- inject: false
- })
- )
Add Comment
Please, Sign In to add comment