I've found Mimosa past month but now I am finally starting to use it.
Consider this configuration snippet:
exports.config = {
"modules": [
"copy",
"minify-js"
],
"watch": {
"sourceDir": "src",
"compiledDir": "dist",
"javascriptDir": null
}
}
The JavaScript assets from src
are minified and saved at dist
with the exact same name: src/foo.js
is minified as dist/foo.js
.
I would like to have both the minified file as .min.js
and also the original unchanged and copied file at the compiled dir.
For example: src/bar.js
becomes dist/bar.min.js
(minified) and dist/bar.js
(copy).
Is this possible? How?