antwar
Version:
A static site engine built with React and Webpack
20 lines (17 loc) • 515 B
JavaScript
import * as path from "path";
import merge from "webpack-merge";
import MiniHtmlWebpackPlugin from "mini-html-webpack-plugin";
module.exports = config => {
const devConfig = {
mode: "development",
node: { __filename: true, fs: "empty" },
output: {
path: path.join(process.cwd(), "./.antwar/build/"),
filename: "[name].js",
publicPath: "/",
chunkFilename: "[chunkhash].js",
},
plugins: [new MiniHtmlWebpackPlugin()],
};
return merge(devConfig, config.webpack);
};