打包coffee-script

webpack.config.js

  1. module.exports = {
  2. // mode: "development || "production",
  3. module: {
  4. rules: [
  5. {
  6. test: /\.coffee$/,
  7. loader: "coffee-loader"
  8. }
  9. ]
  10. },
  11. resolve: {
  12. extensions: [".web.coffee", ".web.js", ".coffee", ".js"]
  13. }
  14. };