HookyQR / VSCodeMinify

Add minify function to VSCode 0.10+
53 stars 21 forks source link

Set default output folder #15

Open Morgy93 opened 7 years ago

Morgy93 commented 7 years ago

Hello,

would it be possible to set a default output folder for minified files? I mostly edit remote files which are then located at C:\Users\Thomas\AppData\Local\Temp\...\awesome\long\path\ and I'd love to just grab it from a predefined folder. (As long as #14 is not implemented =) )

fev4 commented 7 years ago

Hello,

There's a comment on Default Config as follows:

// Minify file on save if a related (.min.[ext]) file already exists. Includes directory minification/ "minify.minifyExistingOnSave": false,

I'm interested in that part that says Includes directory minification/.

I've tried creating a directory called minification within the JS and CSS folders respectively but I can't seem to make it work.

Where should this folder be positioned? @HookyQR

HookyQR commented 6 years ago

Minify directory is a command. With a file open, you can minify the whole of the files in that directory to a single file, files are read in alphabetical order. Output will be in folder.min.js.

Lucian-CostinIon commented 6 years ago

Hello Is it possible to set (in settings) a specific path where the minified files will be generated ?

HenrySabio commented 5 years ago

@HookyQR I might be missing something but I haven't seen any concrete answers.

I have my CSS saved in its own folder. (My FTP program ignores it and only uploads the "css" folder with the final minified file) I want to have my my minified css file saved to a different folder. How is this accomplished?

minify.css{
root: "${workspaceRoot}/css"
}

Does not output my minified file to the "css" folder. It outputs the minified file to the same exact folder my current css file is already located in.