vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dynamically change public path in vue js

mohsen158 opened this issue · comments

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?