UNPKG

create-nextgen

Version:

A CLI tool to scaffold projects using the NextGen template.

19 lines (17 loc) 597 B
const webpack = require('webpack'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = { mode: 'production', devtool: 'source-map', plugins: [ new webpack.DefinePlugin({ 'process.env.name': JSON.stringify('Codevolution'), }), new MiniCssExtractPlugin({ filename: '[name].[contenthash].css', chunkFilename: '[id].[contenthash].css', }), new BundleAnalyzerPlugin(), ] };