Update the codebase

This commit is contained in:
yamadapc 2016-06-18 16:09:42 -03:00
parent 65bb7c90a9
commit 4b19aa7824
3 changed files with 6 additions and 3 deletions

View File

@ -20,5 +20,6 @@ Haskell/JavaScript. It shows that we may wrap pure and unpure computations
**failure** shows that any errors thrown from the Haskell world will result in
the Promise being rejected.
## `webpack` Integrating Haskell code onto an existing webpack build
**webpack**
## `webpack` Basic Haskell webpack build system integration
**webpack** shows off how to `require('Stuff.hs')` from JavaScript using
webpack this integration is still primitive but easy to improve.

View File

@ -4,6 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"webpack-build": "webpack",
"webpack-build-production": "NODE_ENV=production webpack",
"build": "npm run webpack-build-production",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],

View File

@ -60,7 +60,6 @@ function patchWrapper(out) {
exports = module.exports = function ghcjsLoader(content) {
const jsExePath = compileSync(this, content);
const cwd = process.cwd();
const relPath = path.relative(cwd, this.resourcePath);