Skip to content

Instantly share code, notes, and snippets.

@Oldenborg
Last active October 2, 2018 11:19
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 Oldenborg/cee1cb4b2fbc0a656ae1af5cc06f46fd to your computer and use it in GitHub Desktop.
Save Oldenborg/cee1cb4b2fbc0a656ae1af5cc06f46fd to your computer and use it in GitHub Desktop.
This snippet will allow index files from the public folder to be copied to dist folder, this is nessesary in a Vue+NetlfiyCMS setup
module.exports = {
chainWebpack: config => {
config
.plugin('copy')
.use(require('copy-webpack-plugin'), [[{
from: 'public',
ignore: ['./index.html', '.DS_Store']
}]])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment