Fixing docker

Adding service worker
Adding a sigint
This commit is contained in:
Dessalines 2020-09-10 11:39:01 -05:00
parent e16ff7781a
commit 1ab6f90599
7 changed files with 211 additions and 20 deletions

View file

@ -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' }],
}),
],
};