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(a => path.basename(a) === 'webpack-dev-server');
7const isWatch = process.argv.some(a => a === '--watch');
10 isWebpackDevServer || !isWatch ? [] : [
12 this.plugin('done', function(stats){
13 process.stderr.write(stats.toString('errors-only'));
20module.exports = merge(common, {
22 devtool: 'eval-source-map',
25 contentBase: path.resolve(__dirname, 'dist'),
31 new webpack.LoaderOptionsPlugin({
34 new HtmlWebpackPlugin({
35 title: 'Purescript Fan Page',
36 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