Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ <h3>JavaScript</h3>
</body>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,700,700i" rel="stylesheet">

<script src="build/app.js"></script>
</html>
13 changes: 9 additions & 4 deletions examples/webpack.config.ts → examples/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path';
import process from 'node:process';

export default {
const path = require('node:path');
const process = require('node:process');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const config = {
entry: './app.tsx',
context: path.join(process.cwd(), './examples/'),
devtool: 'eval',
Expand All @@ -24,6 +24,10 @@ export default {
extensions: ['.js', '.jsx', '.ts', '.tsx']
},

plugins: [
new HtmlWebpackPlugin({ template: 'index.html' })
],

output: {
path: path.join(process.cwd(), './examples/build/'),
filename: 'app.js'
Expand All @@ -41,3 +45,4 @@ export default {
hot: true
}
};
module.exports = config;
Loading