mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding code to build site statically
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user