Skip to content

Commit

Permalink
Merge pull request #6037 from marmelab/fix-simple-example-webpack
Browse files Browse the repository at this point in the history
Fix Simple Example Webpack
  • Loading branch information
fzaninotto authored Mar 15, 2021
2 parents 1beee96 + 1b631b6 commit 5d8ae19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/simple/index-webpack.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
</head>
<body>
<div id="root"></div>
<script>window.global = window</script>
<script src="/bundle.js"></script>
<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 -->
<script>
var WebFontConfig = {
Expand Down
8 changes: 6 additions & 2 deletions examples/simple/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module.exports = {
},
devtool: 'cheap-module-source-map',
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: ['.ts', '.tsx', '.js'],
extensions: ['.ts', '.js', '.tsx', '.json'],
},
module: {
rules: [
Expand All @@ -24,6 +23,11 @@ module.exports = {
},
},
},
{
test: /\.html$/,
exclude: /node_modules/,
use: { loader: 'html-loader' },
},
],
},
plugins: [
Expand Down

0 comments on commit 5d8ae19

Please sign in to comment.