npm install mix-manifest-path-resolve
const MixManifestPathResolvePlugin = require('mix-manifest-path-resolve');
mix.webpackConfig({
plugins: [
new MixManifestPathResolvePlugin('/path/to')
]
})
output mix-manifest.json
{
- "/js/home.js": "/js/home.js"
+ "/js/home.js": "/path/to/js/home.js"
}
MixManifestPathResolvePlugin(documentRoot, [, publicPath])
documentRoot
subdirectory path specified in the document root
publicPath
[optional]
path to the public directory of laravel
undefined