mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
init
This commit is contained in:
29
webpack.config.ts
Normal file
29
webpack.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Configuration } from 'webpack';
|
||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||
import path from 'path';
|
||||
|
||||
const config: Configuration = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
app: [
|
||||
path.join(__dirname, 'src', 'index.tsx'),
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: path.join(__dirname, 'docs'),
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin(),
|
||||
],
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.tsx?/,
|
||||
use: ['babel-loader'],
|
||||
}],
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user