https://github.com/ethul/purescript-webpack-plugin
Deprecated as of the purs-loader@1.0.0
https://github.com/ethul/purescript-webpack-plugin
Last synced: about 1 year ago
JSON representation
Deprecated as of the purs-loader@1.0.0
- Host: GitHub
- URL: https://github.com/ethul/purescript-webpack-plugin
- Owner: ethul
- License: mit
- Created: 2015-12-26T00:08:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-04T03:45:09.000Z (about 10 years ago)
- Last Synced: 2025-03-24T15:47:28.453Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-webpack-plugin
> [PureScript](http://www.purescript.org) plugin for [webpack](http://webpack.github.io)
## Deprecation
As of the [purs-loader@1.0.0](https://github.com/ethul/purs-loader/releases/tag/1.0.0) this plugin is no longer necessary and is considered to be deprecated.
## Install
Install with [npm](https://npmjs.org/package/purescript-webpack-plugin).
```
npm install purescript-webpack-plugin --save-dev
```
## Options
###### `src` (String Array)
Specifies the PureScript source files. Glob syntax is supported. The default value is `[ 'src/**/*.purs', 'bower_components/purescript-*/src/**/*.purs' ]`.
###### `ffi` (String Array)
Specifies the PureScript FFI files. Glob syntax is supported. The default value is `[ 'src/**/*.js', 'bower_components/purescript-*/src/**/*.js' ]`.
###### `output` (String)
Specifies the PureScript output path. The default value is `output`.
###### `bundleOutput` (String)
Specifies the PureScript bundle output path. The default value is `output/bundle.js`.
###### `bundleNamespace` (String)
Specifies the PureScript bundle namespace. The default value is `PS`.
###### `psc` (String)
Specifies the PureScript psc command. The default value is `psc`.
###### `pscArgs` (Object)
Specifies additional PureScript psc arguments. The default value is `{}`. The format of the arguments object follows [dargs](https://www.npmjs.com/package/dargs).
###### `pscBundle` (String)
Specifies the PureScript psc-bundle command. The default value is `psc-bundle`.
###### `pscBundleArgs` (Object)
Specifies additional PureScript psc-bundle arguments. The default value is `{}`. The format of the arguments object follows [dargs](https://www.npmjs.com/package/dargs).
###### `bundle` (Boolean)
Specifies whether PureScript bundle is used. The default value is `true`.
## Example
Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-webpack-example) for an example.