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([
|
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',
|
||||||
|
|||||||
Reference in New Issue
Block a user