mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix webpack production builds
This commit is contained in:
@@ -4,7 +4,7 @@ const fs = require("fs-extra");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const minimist = require("minimist");
|
const minimist = require("minimist");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
const webExt = require("web-ext").default;
|
const webExt = require("web-ext");
|
||||||
|
|
||||||
const { ROOT
|
const { ROOT
|
||||||
, INCLUDE_PATH
|
, INCLUDE_PATH
|
||||||
@@ -68,9 +68,9 @@ const webpackConfig = require(`${ROOT}/webpack.config.js`)({
|
|||||||
|
|
||||||
// Add mode to config
|
// Add mode to config
|
||||||
webpackConfig.mode = argv.mode;
|
webpackConfig.mode = argv.mode;
|
||||||
webpackConfig.devtool = argv.mode === "production"
|
if (argv.mode !== "production") {
|
||||||
? "none"
|
webpackConfig.devtool = "source-map";
|
||||||
: "source-map";
|
}
|
||||||
|
|
||||||
|
|
||||||
// Clean
|
// Clean
|
||||||
|
|||||||
Reference in New Issue
Block a user