yarn add coffeescript better-coffee-loader --dev
webpack.config.js:
module.exports = {
module: {
rules: [
{
test: /\.coffee$/,
loader: 'better-coffee-loader',
// Options for coffeescript compiler
options: {}
}
]
}
}
Basically all options in CoffeeScript's node.js API. Note that sourceMap
is always true
here.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
better-coffee-loader © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily