ceri-compiler
Version:
compiles template strings for ceriJS
35 lines (30 loc) • 604 B
JavaScript
var BabiliPlugin, path, webpack;
path = require("path");
webpack = require("webpack");
BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
output: {
publicPath: "/",
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.coffee$/,
use: "coffee-loader"
},
{
test: /\.(js|coffee)$/,
use: "ceri-loader",
enforce: "post",
exclude: /node_modules/
}
]
},
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("production")
}),
new BabiliPlugin
]
};