Updated readme

Added changelog
This commit is contained in:
2020-03-07 11:00:54 -06:00
parent 2cd90c7b99
commit f1e5f4390b
2 changed files with 12 additions and 0 deletions

10
CHANGELOG.md Normal file
View File

@ -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

View File

@ -35,6 +35,7 @@ func main() {
}, },
Minify: true, Minify: true,
OutputDir: "assets/", OutputDir: "assets/",
FilePrefix: "app-",
}) })
} }
``` ```
@ -46,6 +47,7 @@ Config key | Use
Files | An array of strings representing paths to files you want compiled Files | An array of strings representing paths to files you want compiled
Minify | Bool, optionally minify the files with https://github.com/tdewolff/minify 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) 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. 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.