adding code to build site statically

This commit is contained in:
Ken
2019-02-19 23:38:31 -08:00
parent 2ba7000120
commit e88ba9c448

View File

@@ -63,13 +63,13 @@ module.exports = function() {
new CopyWebpackPlugin([ new CopyWebpackPlugin([
...Object.keys(entries).map(entry => { ...Object.keys(entries).map(entry => {
return { return {
from: `${entry}/**/*`, from: `${entry}/src/**/*`,
to: path.resolve(__dirname, 'build', entry) to: path.resolve(__dirname, 'build')
}; };
}), }),
{ {
from: 'assets/**/*', from: 'assets/**/*',
to: path.resolve(__dirname, 'build', 'assets') to: path.resolve(__dirname, 'build')
}, },
{ {
from: 'index.html', from: 'index.html',