Skip to content

Commit

Permalink
Fix Webpack config publicPath
Browse files Browse the repository at this point in the history
  • Loading branch information
kitce committed Nov 6, 2021
1 parent eb2902b commit 7022306
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/webpack/webpack.config.base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import webpack from 'webpack';
import { publicURL } from './../config';
import environment from './plugins/environment';
import { resource, source } from './rules/asset';
import scss from './rules/scss';
Expand All @@ -8,6 +9,9 @@ const config: webpack.Configuration = {
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
output: {
publicPath: `${publicURL}/`
},
module: {
rules: [
resource,
Expand Down

0 comments on commit 7022306

Please sign in to comment.