Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

How to deploy on subdirectory #22

Open
HCodemesh opened this issue Aug 16, 2018 · 1 comment
Open

How to deploy on subdirectory #22

HCodemesh opened this issue Aug 16, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@HCodemesh
Copy link

How to build of the project in a subdirectory of a server. on the browser, it's not able to load bundles.

i have tried the add output.publicPath='./'

it's didn't work for me

@flexdinesh flexdinesh added the help wanted Extra attention is needed label Nov 7, 2018
@seblambla
Copy link

Old issue but I just had the same problem:

// webpack.prod.babel.js
output: {
    publicPath: '/your-subdirectory/',
    ...
}

worked fine for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants