Skip to content

Commit 20cf3c4

Browse files
committed
Fixed npm build commands
Summary: I broke this pretty bad in a0fe403! Test plan: npm run build Auditors: riley
1 parent 0dd3b41 commit 20cf3c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
"scripts": {
3333
"build": "npm run prod && npm run dev",
34-
"prod": "webpack -p",
35-
"dev": "webpack --config utils/webpack.config.babel.js -d --devtool hidden --output-file=tota11y.js",
34+
"prod": "webpack --config webpack.config.babel.js -p",
35+
"dev": "webpack --config webpack.config.babel.js -d --devtool hidden --output-file=tota11y.js",
3636
"lint": "eslint index.js plugins test utils",
3737
"test": "mocha --require test/babel-hook test/*.js",
3838
"live-test": "webpack-dev-server --config utils/webpack.config.babel.js --hot --inline"

utils/webpack.config.babel.js renamed to webpack.config.babel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let path = require("path");
44
let postcss = require("postcss");
55
let webpack = require("webpack");
66

7-
let options = require("./options");
7+
let options = require("./utils/options");
88

99
// PostCSS plugin to append !important to every CSS rule
1010
let veryimportant = postcss.plugin("veryimportant", function() {
@@ -48,15 +48,15 @@ module.exports = {
4848
// license info
4949
new webpack.BannerPlugin(
5050
bannerTemplate({
51-
version: require("../package.json").version,
51+
version: require("./package.json").version,
5252
date: new Date().toISOString().slice(0, 10),
5353
}),
5454
{entryOnly: true}),
5555

5656
// Make the JSX pragma function available everywhere without the need
5757
// to use "require"
5858
new webpack.ProvidePlugin({
59-
[options.jsxPragma]: path.join(__dirname, "element"),
59+
[options.jsxPragma]: path.join(__dirname, "utils", "element"),
6060
}),
6161
],
6262
postcss: [veryimportant],

0 commit comments

Comments
 (0)