Skip to content

Commit

Permalink
chore(webpack): Convert image to Data URI (*.css, *.less)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkNami committed Nov 15, 2022
1 parent 5a49db5 commit 85eecfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/webpack-configs/library/dev.js
Expand Up @@ -15,6 +15,10 @@ module.exports = webpackConfig => merge(webpackConfig, {

module: {
rules: [
{
test: /\.png$/,
type: 'asset'
},
utils.styleLoaders({
sourceMap: IS_ENABLE_SOURCE_MAP,
extract: true,
Expand Down
4 changes: 4 additions & 0 deletions build/webpack-configs/library/prod.js
Expand Up @@ -17,6 +17,10 @@ module.exports = webpackConfig => merge(webpackConfig, {

module: {
rules: [
{
test: /\.png$/,
type: 'asset'
},
utils.styleLoaders({
sourceMap: ENABLE_SOURCE_MAP,
extract: true,
Expand Down

0 comments on commit 85eecfd

Please sign in to comment.