Open ilulu opened 6 years ago
There is an open pull-request #3 for this
Actually, that has changed again. According to the current (at the time of writing) documentation:
The base URL your application bundle will be deployed at (known as baseUrl before Vue CLI 3.3). This is the equivalent of webpack's output.publicPath, but Vue CLI also needs this value for other purposes, so you should always use publicPath instead of modifying webpack output.publicPath.
So this would be what works now:
module.exports = {
publicPath: `process.env.NODE_ENV === 'production' ? ${process.cwd()}/dist/ : '/'`
}
The base URL your application bundle will be deployed at. This is the equivalent of webpack's output.publicPath, but Vue CLI also needs this value for other purposes, so you should always use baseUrl instead of modifying webpack output.publicPath.
so ,i use like this :