Webpack, css-minimizer-webpack-plugin vs mini-css-extract-plugin

I am always using mini-css-extract-plugin to optimize CSS. Today I found a new project, css-minimizer-webpack-plugin from here, seems like this project do the same thing as mini-css-extract-plugin. What is the advantage of css-minimizer-webpack-plugin? I read the docs and article from google, seems no one is talking about it? Should I use css-minimizer-webpack-plugin to replace the… Read More Webpack, css-minimizer-webpack-plugin vs mini-css-extract-plugin

'SyntaxError: Identifier directly after number' when string starts with number

I want to have the current commit hash on both my dev and prod env which can getable with /version path. My webpack config: //webpack.config.js … const commitHash = require(‘child_process’).execSync(‘cd .. && git rev-parse –short HEAD’, {encoding: ‘utf8’}).trim(); module.exports = { mode: ‘production’, target: ‘node’, … plugins: [ new webpack.DefinePlugin({ ‘COMMIT_HASH’: commitHash, }) ] };… Read More 'SyntaxError: Identifier directly after number' when string starts with number