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

Commit

Permalink
Merge pull request #579 from devtools-html/devtools-core/ignore-assets
Browse files Browse the repository at this point in the history
ignore assets
  • Loading branch information
jasonLaster authored Aug 10, 2017
1 parent 2018f25 commit 8310d35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/devtools-launchpad/src/tools/mc/make-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ const path = require("path");
const webpack = require("webpack");
const process = require("process");

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

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

return new Promise((resolve, reject) => {
if (updateAssets) {
delete webpackConfig.recordsPath;
}

const webpackCompiler = webpack(webpackConfig);

const postRun = (error, stats) => {
Expand Down
8 changes: 5 additions & 3 deletions packages/devtools-reps/bin/copy-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

const { tools: { makeBundle, symlinkTests, copyFile }} = require("devtools-launchpad/index");
const fs = require('fs-extra')
const {
tools: { makeBundle, symlinkTests, copyFile }
} = require("devtools-launchpad/index");
const fs = require("fs-extra");
const path = require("path");
const minimist = require("minimist");
const getConfig = require("./getConfig");
const { getValue, setConfig } = require("devtools-config");

const args = minimist(process.argv.slice(2), {
boolean: ["watch", "symlink"],
boolean: ["watch", "symlink"]
});

function start() {
Expand Down

0 comments on commit 8310d35

Please sign in to comment.