Fixing docker
Adding service worker Adding a sigint
This commit is contained in:
parent
e16ff7781a
commit
1ab6f90599
7 changed files with 211 additions and 20 deletions
|
@ -1,11 +1,11 @@
|
|||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function (env, _) {
|
||||
const base = {
|
||||
// mode: "production",
|
||||
mode: 'development',
|
||||
// mode is set by package.json flags
|
||||
entry: './src/server/index.tsx', // Point to main file
|
||||
output: {
|
||||
path: path.resolve(process.cwd(), 'dist'),
|
||||
|
@ -40,6 +40,9 @@ module.exports = function (env, _) {
|
|||
new MiniCssExtractPlugin({
|
||||
filename: 'styles/styles.css',
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [{ from: './src/assets', to: './assets' }],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue