forked from tmtk75/jumly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
35 lines (34 loc) · 917 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
var path = require("path");
module.exports = {
entry: {
lib: "./lib/entry.js",
spec: "./spec/entry.js",
},
output: {
path: path.join(__dirname, './dist'),
path: "./dist",
publicPath: '.',
filename: 'bundle.[name].js',
//chunkFilename: '[chunkhash].js'
},
externals: {
// require("jquery") & require("coffee-script") are external and available on the global
"jquery": "jQuery",
"coffee-script": "CoffeeScript"
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.styl$/, loader: "style-loader!css-loader!stylus-loader" },
{ test: /\.coffee$/, loader: "coffee-loader" },
]
},
resolve: {
modulesDirectories: [
"lib/js",
"lib/css",
"node_modules",
"spec",
]
},
};