summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: d069bb60f3fa9f8ad91b53b6b3116a46496d3384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: './src/app.coffee',
  output: {
    path: './build',
    filename: 'bundle.js'
  },
  plugins: [
    new HtmlWebpackPlugin({
      title: 'RPGedit'
    })
  ],
  module: {
    loaders: [
      { test: /\.css$/, loader: 'style-loader!css-loader' },
      { test: /\.coffee$/, loader: 'coffee-loader' }
    ]
  },
  resolve: {
    extensions: ['', '.js', '.json', '.coffee']
  }
};