Last active
April 18, 2019 12:21
-
-
Save Akryum/2ec0a198c49f0364bfeafcda31e872c7 to your computer and use it in GitHub Desktop.
Use webpack-assets-manifest with Vue CLI 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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