adding some skeleton to the todo app

This commit is contained in:
Ken
2019-01-23 11:14:49 -08:00
parent 1c5b6cc9a7
commit 8b0a0f7569
14 changed files with 569 additions and 8 deletions

View File

@@ -2,8 +2,9 @@ const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const entries = {
step01: './step01/index.js',
step02: './step02/src/index.ts'
step01: './step01/index',
step02: './step02/src/index',
playground: './playground/src/index'
};
module.exports = Object.keys(entries).map(entryPoint => {
@@ -21,7 +22,7 @@ module.exports = Object.keys(entries).map(entryPoint => {
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, 'public/index.html'),
template: path.join(__dirname, `${entryPoint}/index.html`),
filename: '../index.html'
})
],