Skip to content

Directory specific configuration#82

Open
ashucg wants to merge 5 commits intotssajo:masterfrom
ashucg:master
Open

Directory specific configuration#82
ashucg wants to merge 5 commits intotssajo:masterfrom
ashucg:master

Conversation

@ashucg
Copy link
Contributor

@ashucg ashucg commented Dec 2, 2019

Feature

Create .minify file in the directory where CSS/JS assets reside and have a different configuration for that particular directory. This behavior could be useful for some users, I personally wanted to have such an option.

Support added for:

  • cssminifier
  • cleancss_options
  • uglifycss_options
  • css_source_map
  • css_dist_directory
  • uglifyjs_command
  • source_map
  • js_map_content
  • keep_comments
  • comments_to_keep
  • uglifyjs_options
  • js_dist_directory
  • html-minifier_options
  • svgo_min_options
  • minjson_command
  • java_command
  • yui_compressor
  • yui_charset
  • yui_line_break
  • csso_command
  • cleancss_command
  • html-minifier_command
  • svgo_command
  • js-beautify_options
  • js-beautify_html_options
  • uglifyjs_pretty_options
  • svgo_pretty_options

create **.minify** file in asset directory and add your configuration to it only for that specific directory.
Directory specific configuration
changed `self.get()` to `config.get()`
fixed error accessing js_dist_directory config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant