Skip to content

Commit

Permalink
fix webpack output directory to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Dec 3, 2021
1 parent 9f6bc00 commit 374bc70
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ docker-compose.override.yml

# Build directories for typescript and webpack
dist
public

# Built by webpack
src/views/partials/webpack.hbs
Expand Down
1 change: 0 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Config } from './config';
import { router } from './routes';

import * as webpackConfig from '../webpack.config';
import { exit } from 'process';
const compiler = webpack(webpackConfig);

const isDeveloping = process.env.NODE_ENV !== 'production';
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FaviconsWebpackPlugin = require('favicons-webpack-plugin');
import { Config } from './src/config';

const srcDir = resolve(__dirname, 'src');
const publicDir = resolve(__dirname, 'public');
const publicDir = resolve(__dirname, 'dist/public');
const jsDir = join(srcDir, 'scripts');
const assetsDir = join(srcDir, 'assets');
const imagesDir = join(assetsDir, 'images');
Expand Down

0 comments on commit 374bc70

Please sign in to comment.