Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamically change public path in vue js #1487

Open
mohsen158 opened this issue Mar 1, 2019 · 0 comments
Open

dynamically change public path in vue js #1487

mohsen158 opened this issue Mar 1, 2019 · 0 comments

Comments

@mohsen158
Copy link

i want put my vue js project in ipfs . and because of that i have to change my baseuri or public path to be :

/ipfs/[hash string which i get after file added to ipfs]

but i cant do that

means i want to set public path be dynamically depends on real url
somethink like this :

 module.exports = {
publicPath: process.env.NODE_ENV === 'production' ?
    '/ipfs/[hash string which i get after file added to ipfs]/' : '/'
} 

whats your idea to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant