-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
45 lines (44 loc) · 1.1 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
39
40
41
42
43
44
45
var path = require("path");
var webpack = require("webpack");
module.exports = {
entry: {
app: './js/entry.js',
},
output: {
filename: 'bundle.js',
path: 'assets',
publicPath: 'http://localhost:8090/assets',
filename: "bundle.[name].js",
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.styl$/, loader: "style-loader!css-loader!stylus-loader" },
{ test: /\.js?$/, loader: 'babel-loader', exclude: /node_moduels/ },
]
},
externals: {
'jquery': 'jQuery',
'baconjs': 'Bacon',
'react': 'React',
'moment': 'moment',
'lodash': '_',
'immutable': 'Immutable',
},
resolve: {
modulesDirectories: [
".",
],
//root: [path.join(__dirname, "bower_components")],
//extensions: ["", ".js"],
},
plugins: [
//new webpack.ResolverPlugin(
// new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])
//),
//new webpack.optimize.UglifyJsPlugin({
// compress: {warnings: false},
// mangle: {except: ['$super', '$', 'exports', 'require']}
//}),
]
}