Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2155 from teamleadercrm/FRAF-129-remove-css-minif…
Browse files Browse the repository at this point in the history
…ication

Remove css minification in output bundle
  • Loading branch information
ArnaudWeyts authored May 19, 2022
2 parents c74d8e3 + 0b6b5c3 commit 0b813e6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 315 deletions.
4 changes: 0 additions & 4 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ module.exports = async ({ config }) => {
use: ['file-loader'],
});

if (config.optimization) {
config.optimization.minimize = false;
}

// Return the altered config
return config;
};
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### Removed

- `Internal`: Remove cssnano option from `postcss.config.js`, end users should be responsible for the minification ([@ArnaudWeyts](https://github.com/ArnaudWeyts) in [#2155](https://github.com/teamleadercrm/ui/pull/2155))

### Fixed

### Dependency updates
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"chromatic": "^6.3.3",
"css-loader": "^6.5.1",
"cssnano": "^5.0.1",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.0.0",
"eslint-config-standard": "^16.0.2",
Expand Down
1 change: 0 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = ({ file, options, env }) => {
},
// @TODO deprecated, a different approach for colors should be used
'postcss-color-function': {},
cssnano: env === 'production',
},
};
};
Loading

0 comments on commit 0b813e6

Please sign in to comment.