# Leaving /assets/scripts/main.js unminified?

**URL:** https://discourse.roots.io/t/leaving-assets-scripts-main-js-unminified/5885
**Category:** sage
**Created:** 2016-02-10T07:07:13Z
**Posts:** 5

## Post 1 by @drawcardau — 2016-02-10T07:07:13Z

I’m in a bit of a funny situation where I’m using a third party library ([Freewall.js](http://vnjs.net/www/project/freewall/)) and the script used to declare it doesn’t work if the code is minified. I’ve reported the issue over at [https://github.com/kombai/freewall/issues/181](https://github.com/kombai/freewall/issues/181) which has the full story but I thought I’d throw a question out here to see if I can properly work around it.

I’d like to still use the JSUglify minifier in Gulpfile.js to compress all of the ordinary JS files that are fetched from Bower, but I’d like to keep /assets/scripts/main.js unminified.

Does anyone know how to achieve that? That would mean the delcarations for Freewall will still work, while I can still enjoy minified JS elsewhere, and I don’t have to delcare Freewall seperately in footer.php as I documented in the issue above.

---

## Post 2 by @Foxaii — 2016-02-10T17:31:44Z

Have you tried initiating the script with `window.Freewall` instead of just `Freewall`?

---

## Post 3 by @drawcardau — 2016-02-11T00:37:59Z

Champion! That did the job.

---

## Post 4 by @jzarzoso — 2016-06-03T09:13:18Z

But is there a way to unminify the compiled script?

---

## Post 5 by @drawcardau — 2016-06-05T23:06:11Z

[www.unminify.com](http://www.unminify.com) - but the results may vary so it’s not best practice.
