forked from BoostIO/BoostNote-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
42 lines (40 loc) · 973 Bytes
/
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
39
40
41
42
const skeleton = require('./webpack-skeleton')
const path = require('path')
var config = Object.assign({}, skeleton, {
module: {
loaders: [
{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel?cacheDirectory'
},
{
test: /\.styl$/,
exclude: /(node_modules|bower_components)/,
loader:
'style!css?modules&importLoaders=1&localIdentName=[name]__[local]___[path]!stylus?sourceMap'
},
{
test: /\.json$/,
loader: 'json'
}
]
},
output: {
path: path.join(__dirname, 'compiled'),
filename: '[name].js',
sourceMapFilename: '[name].map',
libraryTarget: 'commonjs2',
publicPath: 'http://localhost:8080/assets/'
},
debug: true,
devtool: 'cheap-module-eval-source-map',
devServer: {
port: 8080,
hot: true,
inline: true,
quiet: false,
publicPath: 'http://localhost:8080/assets/'
}
})
module.exports = config