Skip to content

Commit

Permalink
Fixed npm build commands
Browse files Browse the repository at this point in the history
Summary:
I broke this pretty bad in a0fe403!

Test plan:
npm run build

Auditors: riley
  • Loading branch information
jdan committed Nov 23, 2015
1 parent 0dd3b41 commit 20cf3c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"scripts": {
"build": "npm run prod && npm run dev",
"prod": "webpack -p",
"dev": "webpack --config utils/webpack.config.babel.js -d --devtool hidden --output-file=tota11y.js",
"prod": "webpack --config webpack.config.babel.js -p",
"dev": "webpack --config webpack.config.babel.js -d --devtool hidden --output-file=tota11y.js",
"lint": "eslint index.js plugins test utils",
"test": "mocha --require test/babel-hook test/*.js",
"live-test": "webpack-dev-server --config utils/webpack.config.babel.js --hot --inline"
Expand Down
6 changes: 3 additions & 3 deletions utils/webpack.config.babel.js → webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let path = require("path");
let postcss = require("postcss");
let webpack = require("webpack");

let options = require("./options");
let options = require("./utils/options");

// PostCSS plugin to append !important to every CSS rule
let veryimportant = postcss.plugin("veryimportant", function() {
Expand Down Expand Up @@ -48,15 +48,15 @@ module.exports = {
// license info
new webpack.BannerPlugin(
bannerTemplate({
version: require("../package.json").version,
version: require("./package.json").version,
date: new Date().toISOString().slice(0, 10),
}),
{entryOnly: true}),

// Make the JSX pragma function available everywhere without the need
// to use "require"
new webpack.ProvidePlugin({
[options.jsxPragma]: path.join(__dirname, "element"),
[options.jsxPragma]: path.join(__dirname, "utils", "element"),
}),
],
postcss: [veryimportant],
Expand Down

0 comments on commit 20cf3c4

Please sign in to comment.