mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
Update webpack.config.js
This commit is contained in:
parent
43010ced8a
commit
697d0688ed
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user