-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.coffee
46 lines (38 loc) · 1.14 KB
/
webpack.config.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# See webpack.config.js for more examples:
# https://github.com/webpack/webpack-with-common-libs/blob/master/webpack.config.js
path = require 'path'
webpack = require 'webpack'
# webpack-dev-server options used in gulpfile
# https://github.com/webpack/webpack-dev-server
module.exports =
contentBase: "#{__dirname}/src/"
cache: true
entry:
app: './coffee/app'
events: './coffee/events'
callback: './coffee/callback'
output:
path: path.join(__dirname, 'src')
publicPath: 'src/'
filename: '[name].js'
chunkFilename: '[chunkhash].js'
module:
loaders: [
{
test: /\.coffee$/
loader: 'coffee-loader'
}
# {
# test: /\.scss$/,
# loader: "style-loader!sass-loader?outputStyle=expanded&includePaths[]=./bower_components/foundation/scss/"
# }
{
# required to write 'require('./style.css')'
test: /\.css$/
loader: 'style-loader!css-loader'
}
]
resolve:
extensions: ['', '.webpack.js', '.web.js', '.coffee', '.js', '.scss', '.css']
modulesDirectories: ['src', 'coffee', 'styles', 'node_modules']
plugins: []