Skip to content

Instantly share code, notes, and snippets.

@Akryum
Last active April 18, 2019 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akryum/2ec0a198c49f0364bfeafcda31e872c7 to your computer and use it in GitHub Desktop.
Save Akryum/2ec0a198c49f0364bfeafcda31e872c7 to your computer and use it in GitHub Desktop.
Use webpack-assets-manifest with Vue CLI 3
module.exports = {
chainWebpack: config => {
config
.plugin('manifest')
.use('webpack-assets-manifest', [{
publicPath: process.env.BASE_URL,
output: process.env.NODE_ENV === 'development' ? 'webpack.dev.manifest.json' : 'webpack.manifest.json',
writeToDisk: true,
}])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment