Update webpack.config.js

This commit is contained in:
robindijkhof 2021-04-09 16:59:35 +02:00 committed by GitHub
parent 43010ced8a
commit 697d0688ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const WextManifestWebpackPlugin = require('wext-manifest-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const Dotenv = require('dotenv-webpack');
const viewsPath = path.join(__dirname, 'views');
const sourcePath = path.join(__dirname, 'source');
@ -173,6 +174,7 @@ module.exports = {
}),
// plugin to enable browser reloading in development mode
extensionReloaderPlugin,
new Dotenv({path: `./.env.${nodeEnv}`}),
],
optimization: {