npm install --save-dev coffee-loader
import coffee from 'coffee-loader!./file.coffee';
import coffee from 'file.coffee';
webpack.config.js
module.exports = { module: { rules: [ { test: /\.coffee$/, use: [ 'coffee-loader' ] } ] } }
literate
false
file.coffee.md
sourceMap
false
webpack.config.js
module.exports = { module: { rules: [ { test: /\.coffee.md$/, use: [ { loader: 'coffee-loader', options: { literate: true } } ] } ] } }
webpack.config.js
module.exports = { module: { rules: [ { test: /\.coffee$/, use: [ { loader: 'coffee-loader', options: { sourceMap: true } } ] } ] } }
© 2012–2016 Tobias Koppers
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/loaders/coffee-loader/