1const webpack = require("webpack");
2const merge = require("webpack-merge");
3const path = require("path");
4const common = require("./webpack.common.js");
5const HtmlWebpackPlugin = require("html-webpack-plugin");
6const isWebpackDevServer = process.argv.some(
7 (a) => path.basename(a) === "webpack-dev-server"
9const isWatch = process.argv.some((a) => a === "--watch");
12 isWebpackDevServer || !isWatch
16 this.plugin("done", function (stats) {
17 process.stderr.write(stats.toString("errors-only"));
21module.exports = merge(common, {
23 devtool: "eval-source-map",
26 contentBase: path.resolve(__dirname, "dist"),
32 new webpack.LoaderOptionsPlugin({
35 new HtmlWebpackPlugin({
36 title: "Purescript Fan Page",
37 template: "index.html",
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list