-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwebpack.config.base.js
More file actions
52 lines (48 loc) · 1.16 KB
/
Copy pathwebpack.config.base.js
File metadata and controls
52 lines (48 loc) · 1.16 KB
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
47
48
49
50
51
52
/* eslint strict: 0 */
'use strict';
const path = require('path');
const webpack = require('webpack');
let includePaths = [].concat(require('node-bourbon').includePaths);
includePaths.push(path.resolve(__dirname, './app/bower_components'));
module.exports = {
sassLoader: {
includePaths: includePaths
},
module: {
loaders: [
{
test: /\.jsx?$/,
loaders: ['babel-loader'],
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /.(png|woff(2)?|eot|ttf|svg)(\?[a-z0-9=\.]+)?$/,
loader: 'url?limit=100000'
}
]
},
output: {
path: path.join(__dirname, 'app', 'dist'),
filename: 'bundle.js',
libraryTarget: 'commonjs2'
},
resolve: {
extensions: ['', '.js', '.jsx'],
packageMains: ['webpack', 'browser', 'web', 'browserify', ['jam', 'main'], 'main'],
root: [path.join(__dirname, 'app', "bower_components")]
},
plugins: [
new webpack.ResolverPlugin(
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('.bower.json', ['main'])
)
],
externals: [
'github-cache',
'github',
'jsop'
]
};