Categories
Development

How to configure cssnano for CSS minification?

I am trying to configure cssnano plugin for the postcss-loader, which minifies CSS, very similar, as described here. Webpack config: … module: { rules: [ { test: /\.css$/, use: [ MiniCssExtractPlugin.loader, ‘css-loader’, { loader: ‘postcss-loader’, options: { ident: ‘postcss’, plugins: () => [ cssnano({ preset: [‘default’, { discardComments: { removeAll: true, }, // how to […]

Categories
Development

WebStorm breakpoints issue with TypeScript React App (using webpack)

I tried to configure the JavaScript Debugger as the WebStorm website is telling so: https://blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/ However, it worked like for 2 minutes and it doesn’t work anymore, I can’t tell why.. Is it at least stable with TypeScript? Can I use the JavaScript Debugger? Edit 1 (based on @lena comment) Here you can find my […]