3const path = require("path");
4const { merge } = require('webpack-merge');
5const common = require('./webpack.common.js');
6const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
7const HtmlWebpackPlugin = require("html-webpack-plugin");
9module.exports = merge(common, {
12 // The JavaScript file to be injected into the HTML file
13 entry: path.resolve(__dirname, "index.dev.js"),
15 devtool: 'inline-source-map',
17 // This plugin updates React components without losing their state
19 new ReactRefreshWebpackPlugin(),
21 // This plugin allows us to use a HTML file template.
22 // In the settings we specify its title and 'entry'
23 // specifies a script to be injected into the template
24 new HtmlWebpackPlugin({
25 title: "PureScript Starter",
26 template: path.resolve(__dirname, "src", "index.html"),
31 contentBase: path.join(__dirname, 'dist'),
32 historyApiFallback: true,
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