build: bundle assets inline for the component library (#513)

* build: bundle assets inline for the component library

* chore(deps): allow react version 17.x.x and 18.x.x
This commit is contained in:
Vojtech Simetka
2022-08-03 07:28:57 +02:00
committed by GitHub
parent 1be5cbda6d
commit a7bd94af82
4 changed files with 42 additions and 22 deletions
+3 -12
View File
@@ -35,18 +35,9 @@ module.exports = () => {
use: ['style-loader', 'css-loader'],
},
{
test: /\.(png|jp(e*)g|svg|gif)$/,
loader: 'file-loader',
options: {
name: 'assets/[name].[ext]',
},
},
{
test: /\.(ttf)$/,
loader: 'file-loader',
options: {
name: 'assets/fonts/[name].[ext]',
},
test: /\.(jpe?g|png|ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/,
use: ['base64-inline-loader'],
type: 'javascript/auto'
},
{
test: /\.(ts|js|tsx|jsx)$/,