Skip to content

Commit 17f1697

Browse files
committed
added 2 icons, buildClassnames and refactored icons.js
1 parent 068c90e commit 17f1697

File tree

13 files changed

+1064
-378
lines changed

13 files changed

+1064
-378
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_ENV=

build-utils/webpack.common.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable prettier/prettier */
22

3-
const path = require('path');
4-
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
5-
const HtmlWebpackPlugin = require('html-webpack-plugin');
3+
const path = require('path')
4+
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
5+
const HtmlWebpackPlugin = require('html-webpack-plugin')
66

77
module.exports = {
88
entry: path.resolve(__dirname, '..', './src/index.js'),
@@ -16,7 +16,7 @@ module.exports = {
1616
},
1717
// Adding fonts to fonts folder
1818
{
19-
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
19+
test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
2020
use: [
2121
{
2222
loader: 'file-loader',
@@ -27,6 +27,11 @@ module.exports = {
2727
},
2828
],
2929
},
30+
// add svg as a components
31+
{
32+
test: /\.svg$/,
33+
use: ['@svgr/webpack', 'url-loader'],
34+
},
3035
// Adding images to project
3136
{
3237
test: /\.(jpg|png|jpeg)$/,
@@ -52,4 +57,4 @@ module.exports = {
5257
path: path.resolve(__dirname, '..', 'dist'),
5358
filename: 'bundle.js',
5459
},
55-
};
60+
}

0 commit comments

Comments
 (0)