apple-touch-icons-webpack-plugin
Version:
a webpack plugin for automatically creating apple touch icons and launch screens
25 lines (23 loc) • 612 B
JavaScript
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
module.exports = () => ({
mode: 'production',
devtool: 'none',
output: {
filename: 'bundle.[contenthash].js'
},
module: {
rules: [
{
test: /\.css$/,
use: [MiniCssExtractPlugin.loader, 'css-loader']
}
]
},
plugins: [
new MiniCssExtractPlugin({
filename: 'style.[contenthash].css'
}),
new OptimizeCSSAssetsPlugin()
]
});