JavaScript for WordPress › Forums › Gutenberg Development › Minified output This topic has 4 replies, 2 voices, and was last updated 6 years, 3 months ago by Mahdi. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts August 19, 2018 at 10:31 pm #55085 MahdiParticipant Hello, I was wondering if there is an easy way to make the output JS file minified? So far I have tried the following minify plugin but it seems I am missing something! https://github.com/webpack-contrib/babel-minify-webpack-plugin August 20, 2018 at 1:52 am #55102 Zac GordonKeymaster Hi! Is the webpack setup included in the example plugin not giving you minified files when you run npm run build? August 20, 2018 at 11:04 am #55112 MahdiParticipant Actually, I am using the “Gutenberg Course” config here but running npm run build isn’t giving me the minified version as expected! August 21, 2018 at 4:14 pm #55209 Zac GordonKeymaster Just updated the npm script to minify in production. Just needed -p at the end 🙂 "build": "cross-env BABEL_ENV=default NODE_ENV=production webpack -p" August 21, 2018 at 4:54 pm #55217 MahdiParticipant Thanks for your time and help. Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In