Last active
October 2, 2018 11:19
-
-
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
This file contains hidden or 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('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