Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 8310d35

Browse files
authored
Merge pull request #579 from devtools-html/devtools-core/ignore-assets
ignore assets
1 parent 2018f25 commit 8310d35

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/devtools-launchpad/src/tools/mc/make-bundle.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ const path = require("path");
66
const webpack = require("webpack");
77
const process = require("process");
88

9-
function makeBundle({ outputPath, projectPath, watch = false }) {
9+
function makeBundle({ outputPath, projectPath, watch = false, updateAssets = false }) {
1010
process.env.TARGET = "firefox-panel";
1111
process.env.OUTPUT_PATH = outputPath;
1212

1313
const webpackConfig = require(path.resolve(projectPath, "webpack.config.js"));
1414

1515
return new Promise((resolve, reject) => {
16+
if (updateAssets) {
17+
delete webpackConfig.recordsPath;
18+
}
19+
1620
const webpackCompiler = webpack(webpackConfig);
1721

1822
const postRun = (error, stats) => {

packages/devtools-reps/bin/copy-assets.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
const { tools: { makeBundle, symlinkTests, copyFile }} = require("devtools-launchpad/index");
6-
const fs = require('fs-extra')
5+
const {
6+
tools: { makeBundle, symlinkTests, copyFile }
7+
} = require("devtools-launchpad/index");
8+
const fs = require("fs-extra");
79
const path = require("path");
810
const minimist = require("minimist");
911
const getConfig = require("./getConfig");
1012
const { getValue, setConfig } = require("devtools-config");
1113

1214
const args = minimist(process.argv.slice(2), {
13-
boolean: ["watch", "symlink"],
15+
boolean: ["watch", "symlink"]
1416
});
1517

1618
function start() {

0 commit comments

Comments
 (0)