ghost-portal/packages/apps/webpack.serve.cjs
Jaco Greeff 7d2d1842d1
Update deps (& berry) (#4765)
* Update deps (& berry)

* linting

* Additional

* Bumps

* jest babel helpers esm
2021-03-03 11:52:39 +01:00

32 lines
820 B
JavaScript

// Copyright 2017-2021 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.cjs');
module.exports = merge(
baseConfig(__dirname, 'development'),
{
devServer: {
open: false,
port: 3000,
static: path.resolve(__dirname, 'build')
},
plugins: [
new HtmlWebpackPlugin({
PAGE_TITLE: 'Polkadot/Substrate Portal',
inject: true,
template: path.join(__dirname, 'public/index.html')
}),
new webpack.HotModuleReplacementPlugin()
],
watchOptions: {
ignored: ['.yarn', 'build', 'node_modules']
}
}
);