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

Commit f48ddcb

Browse files
committed
Change how bundling is done.
The makeBundle command produce a reps.js and a reps.css file. The reps.css file contains all the CSS files that are required in the package (object inspector and reps CSS files at the moment).
1 parent 9a30b5f commit f48ddcb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ function start() {
3232

3333
console.log(" output path is:", mcPath);
3434

35-
console.log(" copying reps.css...");
36-
copyFile(
37-
path.resolve(projectPath, "src/reps/reps.css"),
38-
path.join(mcPath, mcModulePath, "reps.css"),
39-
{cwd: projectPath}
40-
);
41-
4235
console.log(" creating reps.js bundle...");
4336
makeBundle({
4437
outputPath: path.join(mcPath, mcModulePath),

packages/devtools-reps/src/reps/rep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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+
require("./reps.css");
56
const { isGrip } = require("./rep-utils");
67

78
// Load all existing rep templates

0 commit comments

Comments
 (0)