diff --git a/.gitignore b/.gitignore index 1b478d3..7b73086 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ tmp/ output/ bundle.js bundle.js.map +*-manifest.json +*-dll.js diff --git a/README.md b/README.md index 4fd472f..4b333d3 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,23 @@ -# purescript-webpack-example +# purescript-webpack-example (fast rebuilds) -Example project using PureScript with webpack. +Example project using PureScript with webpack that illustrates a +configuration geared towards fast rebuilds. -```bash -bower install - -npm install - -npm run webpack +The main parts to the configuration are enabling `pscIde` in the +`purs-loader` configuration, and using webpack's +[DllPlugin](https://github.com/webpack/docs/wiki/list-of-plugins#dllplugin) +to delegate to pre-built external modules. -npm start -``` - -To test this in the browser with the webpack-dev-server. +To get the example up and running, please run the following commands. ```bash +npm install # yarn may also be used for this step + bower install -npm install +npm run webpack:dll -# http://localhost:4008/ -npm run webpack:server +npm run webpack-dev-server ``` + +The example will then be available in browser at [http://localhost:4008/](http://localhost:4008/). diff --git a/bower.json b/bower.json index 1f10e62..6299f76 100644 --- a/bower.json +++ b/bower.json @@ -2,10 +2,9 @@ "name": "purescript-webpack-example", "private": true, "dependencies": { - "purescript-eff": "^2.0.0", - "purescript-prelude": "^2.1.0", - "purescript-react": "^2.0.0", - "purescript-react-dom": "^2.0.0", - "purescript-console": "^2.0.0" + "purescript-react": "^6.1.0", + "purescript-react-dom": "^6.0.0", + "purescript-effect": "^2.0.0", + "purescript-console": "^4.2.0" } } diff --git a/index.html b/index.html index 3db7456..4331325 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@
+