mix-manifest-path-resolve
v0.1.0
Published
Enable to display the path of the resource file generated by laravel-mix from the subdirectory.
Downloads
9
Readme
mix-manifest-path-resolve
install
npm install mix-manifest-path-resolve
usage
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"
}
syntax
MixManifestPathResolvePlugin(documentRoot, [, publicPath])
parameters
documentRoot
subdirectory path specified in the document root
publicPath
[optional]
path to the public directory of laravel
return value
undefined