forked from webpack/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
28 lines (28 loc) · 964 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
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: {
doc: "./app/doc.js",
landing: "./app/landing.js",
tutorial: "./app/tutorial.js",
"404": "./app/404.js"
},
output: {
path: __dirname + "/dist",
publicPath: "",
filename: "js/[name].js",
chunkFilename: "js/[id].js"
},
module: {
loaders: [
{ test: /\.styl$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!autoprefixer-loader?browsers=last 2 versions!stylus-loader") },
{ test: /\.css$/, loader: "style-loader!css-loader!autoprefixer-loader?browsers=last 2 versions" },
{ test: /\.woff$/, loader: "url-loader?prefix=font/&limit=5000&minetype=application/font-woff" },
{ test: /\.ttf$/, loader: "file-loader?prefix=font/" },
{ test: /\.eot$/, loader: "file-loader?prefix=font/" },
{ test: /\.svg$/, loader: "file-loader?prefix=font/" },
]
},
plugins: [
new ExtractTextPlugin("css/[name].css")
]
};