diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6e6bb27 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# v1.1.0 +## Added +* Ability to specify a prefix to use when outputting files via the OutputDir config property. +* Documented all config properties to explain their usage. + +## Changed +* If no FilePrefix is specified in the config, files will now be written as (hash).min.(extension) (no `app-` prefix as was hardcoded into previous releases). + +# v1.0.0 +Initial release diff --git a/README.md b/README.md index 5bcffb5..ad6be1c 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ func main() { }, Minify: true, OutputDir: "assets/", + FilePrefix: "app-", }) } ``` @@ -46,6 +47,7 @@ Config key | Use Files | An array of strings representing paths to files you want compiled Minify | Bool, optionally minify the files with https://github.com/tdewolff/minify OutputDir | String, the directory you'd like to write the compiled files to (with trailing slash) +FilePrefix | String, what, if anything, should be prefixed onto the output filenames Note that if an output dir is specified, "css" and "js" subdirectories will be used/created to hold the resulting files. Leaving it blank will cause it to not write any files to disk.