Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89d7ad5
commit 3a4378c
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,20 +6,22 @@ | |
"start": "bsb -make-world -w", | ||
"clean": "bsb -clean-world", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"webpack": "webpack -w" | ||
"webpack": "webpack -w", | ||
"webpack:build": "NODE_ENV=production webpack" | ||
}, | ||
"keywords": [ | ||
"BuckleScript" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"react": "^15.4.2", | ||
"react-dom": "^15.4.2", | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0", | ||
"reason-react": ">=0.3.0" | ||
}, | ||
"devDependencies": { | ||
"bs-platform": "^2.2.2", | ||
"webpack": "^3.8.1" | ||
"bs-platform": "^2.2.0", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
thangngoc89
Author
Owner
|
||
"webpack": "^4.0.1", | ||
"webpack-cli": "^2.0.10" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
const path = require('path'); | ||
const path = require("path"); | ||
const outputDir = path.join(__dirname, "build/"); | ||
|
||
const isProd = process.env.NODE_ENV === "production"; | ||
|
||
module.exports = { | ||
entry: './src/Index.bs.js', | ||
entry: "./src/Index.bs.js", | ||
mode: isProd ? "production" : "development", | ||
output: { | ||
path: outputDir, | ||
publicPath: outputDir, | ||
filename: 'Index.js', | ||
filename: "Index.js", | ||
}, | ||
}; |
Hey, I'm wondering why the downgrade?