ctf0 / laravel-mix-versionhash

Auto append hash to file instead of using virtual one
MIT License
61 stars 18 forks source link

Wrong path when using chunked exports #6

Closed Tlapi closed 6 years ago

Tlapi commented 6 years ago

When using dynamic Vue components you define chunkFilename in webpack.mix.js

Any directory is rewritten by this plugin and this commit should fix this.

ctf0 commented 6 years ago

i may have done something wrong in the last release, so b4 i merge can u plz try this first and report back

// let chunkhash = `[name]${delimiter}[chunkhash:${length}].js`

webpackConfig.output.filename = `[name]${delimiter}[chunkhash:${length}].js`
webpackConfig.output.chunkFilename = `[name]${delimiter}[chunkhash:${length}].js`