making some major improvements on the exercise and demo pages

This commit is contained in:
Ken
2019-02-23 07:45:45 -08:00
parent f70417f6ae
commit 672099ccdd
34 changed files with 391 additions and 121 deletions

View File

@@ -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({