A webpack-block for PureScript using purs-loader.
Version compatibility:
- webpack-blocks v0.x -> webpack-blocks-purescript v1.x (@latest)
- webpack-blocks v1.x -> webpack-blocks-purescript v2.x (@next)
yarn add --dev webpack-blocks-purescript
or
npm install --save-dev webpack-blocks-purescript
import {createConfig, entryPoint, setOutput} from '@webpack-blocks/webpack'
import babel from '@webpack-blocks/babel6'
import purescript from 'webpack-block-purescript'
export default createConfig([
entryPoint(['babel-polyfill', './src/Main.js']),
setOutput('./build/bundle.js'),
babel(),
purescript(),
])
See the options list here.
Defaults:
- psc:
'psa'
- src:
['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs']
- warnings:
false
This project is licensed under MIT.