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([
...Object.keys(entries).map(entry => {
return {
from: `${entry}/**/*`,
to: path.resolve(__dirname, 'build', entry)
from: `${entry}/src/**/*`,
to: path.resolve(__dirname, 'build')
};
}),
{
from: 'assets/**/*',
to: path.resolve(__dirname, 'build', 'assets')
to: path.resolve(__dirname, 'build')
},
{
from: 'index.html',