mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
25 lines
422 B
JavaScript
25 lines
422 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
step01: './step01/index.js',
|
|
step02: './step02/src/index.ts'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js']
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.resolve(__dirname, '[name]/dist')
|
|
}
|
|
};
|