diff --git a/webpack.main.ts b/webpack.main.ts index 44d2afa25a..f2d37cb1aa 100755 --- a/webpack.main.ts +++ b/webpack.main.ts @@ -4,6 +4,7 @@ import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin" import { isDevelopment, isProduction, mainDir, buildDir } from "./src/common/vars"; import nodeExternals from "webpack-node-externals"; import ProgressBarPlugin from "progress-bar-webpack-plugin"; +import HardSourceWebpackPlugin from 'hard-source-webpack-plugin'; export default function (): webpack.Configuration { console.info('WEBPACK:main', require("./src/common/vars")) @@ -47,6 +48,7 @@ export default function (): webpack.Configuration { plugins: [ new ProgressBarPlugin(), new ForkTsCheckerPlugin(), + isDevelopment && new HardSourceWebpackPlugin(), ] } }