mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
making some major improvements on the exercise and demo pages
This commit is contained in:
@@ -41,7 +41,7 @@ fs.readdirSync('./').filter(step => {
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
entry: entries,
|
||||
entry: { ...entries, markdownReadme: './markdownReadme/src/index.ts' },
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
@@ -66,7 +66,7 @@ module.exports = function() {
|
||||
return new HtmlWebpackPlugin({
|
||||
template: path.join(__dirname, entry, 'index.html'),
|
||||
filename: `${entry}/index.html`,
|
||||
chunks: [entry]
|
||||
chunks: [entry, 'markdownReadme']
|
||||
});
|
||||
}),
|
||||
new CopyWebpackPlugin([
|
||||
@@ -84,6 +84,10 @@ module.exports = function() {
|
||||
from: 'index.html',
|
||||
to: outPath
|
||||
},
|
||||
{
|
||||
from: '*.md',
|
||||
to: outPath
|
||||
},
|
||||
...nonWebpackedEntries.map(entry => ({ from: `${entry}/**/*`, to: outPath }))
|
||||
]),
|
||||
new ForkTsCheckerWebpackPlugin({
|
||||
|
||||
Reference in New Issue
Block a user