Add special case to webpack config for step1-04 docs

This commit is contained in:
Elizabeth Craig
2019-03-05 04:01:22 -08:00
parent 852b5347e6
commit 49c15bdaa7

View File

@@ -40,10 +40,13 @@ fs.readdirSync('./').filter(step => {
if (!isEntryPoint && isValidLessonFolder(step)) {
nonWebpackedEntries.push(step);
} else if (step === 'step1-04') {
// special case: this folder's `final` has code, but its `demo` doesn't
nonWebpackedEntries.push('step1-04/demo');
}
});
module.exports = function(env, argv) {
module.exports = function (env, argv) {
return {
entry: { ...entries, markdownReadme: './markdownReadme/src/index.ts' },
module: {