How to disable JavaScript Minifier in CodeKit?

What's the best way to disable JavaScript mini code in CodeKit? All of these *-ck.js files that he creates create a mess in our repository submodules.

Please note that adding a rule to .gitignore does not work, because its rules are not inherited by submodules.

+7
source share
5 answers

In the CodeKit settings, select Languages ​​/ JavaScript to change the default settings for processing JavaScript. (They can be overridden for each file in the project.)

Change the setting for the second processing step (labeled “Then:”) from “Concatenate + minifiy” to “Merge Imported Files”. For any script file already in the project, check to see if it already has separate settings that still differ from this new default value.

In this case, " *-ck.js " - files should only be created if the source file imports another for concatenation, but not for regular script files.

Alternatively, you can specify a different output path for the generated ck files in the CodeKit / JavaScript / Output Paths settings to prevent the generated files from cluttering the source directory.

+2
source

I believe the menu has been updated, but the answer from immo is still worth it. In the Javascript language settings, you can click the drop-down list for the output style and change it from minimum to invalid.

enter image description here

+2
source

One solution is to set the output path to codekit-ignore in Preferences > JavaScript > Output Paths relative to the project root folder.

Then add /codekit-ignore to .gitignore .

It is easy to clean and feels better than find . -iregex '.*-ck\.js' -delete find . -iregex '.*-ck\.js' -delete .

+1
source

In the settings, see "Missing items" in the "General" section and add * .js to the list.

enter image description here

+1
source

There are several ways to stop the javascript thumbnail in the Code Kit , but the easiest and easiest way to do this is to simply go to the javascript file that you do not want to minimize in the file view and configure your Javascript settings on the right side.

This method provides benefits such as JSHint and JSLint without a mini-code, and can be configured on site by site, file by file, giving you more control.

Let me know if you have any further problems, I would be happy to help.

CodeKit: JavaScript Parameters

0
source

All Articles