Skip to content

Commit 2a07dfd

Browse files
committed
return file loader
1 parent 5c85547 commit 2a07dfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.common.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ module.exports = {
3535
test: /\.(jpg|png|svg)$/,
3636
loader: 'url-loader'
3737
},
38+
// loads the icon to the dist directory
39+
{
40+
test: new RegExp('\.(' + fileExtensions.join('|') + ')$'),
41+
loader: "file-loader?name=[name].[ext]",
42+
exclude: /node_modules/
43+
},
3844
{
3945
exclude: /node_modules/,
4046
test: /\.tsx?$/,

0 commit comments

Comments
 (0)