Skip to content

Commit

Permalink
Update webpack to allow file imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Rosenau authored and Nick Rosenau committed Nov 27, 2023
1 parent 06c228e commit 2eac8a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ const cdnBuild = {
rules: [
{ test: /\.(t|j)sx?$/, loader: "ts-loader", exclude: /node_modules/ },
{ test: /\.js$/, enforce: "pre", loader: "source-map-loader", exclude: /node_modules/ },
{
test: /\.(png|jpe?g|gif|jp2|webp)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]',
},
},
],
},
optimization: {
Expand Down

0 comments on commit 2eac8a2

Please sign in to comment.