ghost-portal/packages/apps/webpack.serve.cjs
2021-12-07 17:40:07 +02:00

31 lines
753 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 { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.cjs');
module.exports = merge(
baseConfig(__dirname, 'development'),
{
devServer: {
hot: true,
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')
})
],
watchOptions: {
ignored: ['.yarn', 'build', 'node_modules']
}
}
);