even more dev friendly I think

This commit is contained in:
notgne2 2020-02-13 21:45:30 -07:00
parent b41e7cb4b9
commit 94107ba215

View File

@ -95,19 +95,6 @@ const productionPlugins = [
jpegtran: { progressive: true },
svgo: null,
}),
];
let plugins = [
new CopyPlugin([{ from: 'data', to: 'data' }, { from: 'wand.js', to: 'wand.js' }]),
new HtmlWebpackPlugin({
hash: true,
inject: true,
minify: htmlMin,
template: './template.html',
meta: {
viewport: 'width=360, initial-scale=1, maximum-scale=1'
}
}),
new FaviconsWebpackPlugin({
logo: path.join(__dirname, 'data', 'images', 'icon.png'),
inject: false, // manually in our template for now cos its fuckd
@ -122,6 +109,19 @@ let plugins = [
}),
];
let plugins = [
new CopyPlugin([{ from: 'data', to: 'data' }, { from: 'wand.js', to: 'wand.js' }]),
new HtmlWebpackPlugin({
hash: true,
inject: true,
minify: argv.mode == 'production' ? htmlMin : false,
template: './template.html',
meta: {
viewport: 'width=360, initial-scale=1, maximum-scale=1'
}
}),
];
module.exports = (env, argv) => ({
target: 'web',
externals: {