mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
513 B
JavaScript
37 lines
513 B
JavaScript
const nib = require("nib");
|
|
|
|
module.exports = {
|
|
entry: "./lib/client",
|
|
target: "web",
|
|
|
|
output: {
|
|
filename: "dist/bundle.js"
|
|
},
|
|
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: "babel-loader"
|
|
},
|
|
{
|
|
test: /\.json$/,
|
|
loader: "json"
|
|
},
|
|
{
|
|
test: /\.styl$/,
|
|
loader: "style-loader!css-loader!stylus-loader"
|
|
}
|
|
]
|
|
},
|
|
|
|
node: {
|
|
fs: "empty"
|
|
},
|
|
|
|
stylus: {
|
|
use: [nib()]
|
|
}
|
|
};
|