swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

how to use minify? #26

Closed green1052 closed 2 years ago

green1052 commented 3 years ago

https://webpack.js.org/plugins/terser-webpack-plugin/#swc https://swc.rs/docs/configuring-swc#minify

Is this right?

ZiYuEdward commented 1 year ago

hello did you resolve this problem? i only add minify options in swc-loader but it does't work

green1052 commented 1 year ago

hello did you resolve this problem? i only add minify options in swc-loader but it does't work

https://swc.rs/docs/configuration/minification#replacing-terser

icy0307 commented 1 year ago

Is there any chance I can use swc-loader before babel loader in order to minify the code before babel get involved?