forked from elpassion/sprint-poker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
webpack.config.js
38 lines (37 loc) · 1.46 KB
/
webpack.config.js
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
'use strict';
var webpack = require('webpack');
module.exports = {
entry: './web/static/coffee/app.coffee',
output: {
filename: 'main.js',
path: './priv/static/assets/'
},
resolve: {
extensions: ['', '.js', '.cjsx', '.coffee'],
modulesDirectories: [
'./node_modules',
'./deps/phoenix/web/static/js',
'./deps/phoenix_html/web/static/js'
],
},
debug: true,
devtool: 'source-map',
stats: {
colors: true,
reasons: true
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader?stage=0', exclude: /(node_modules)/ },
{ test: /\.(cjsx|coffee)$/, loader: "coffee-jsx-loader" },
{ test: /\.(png|jpg)$/, loader: 'url-loader?prefix=assets/' },
{ test: /\.sass/, loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded&indentedSyntax' },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
{ test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
]
},
};