hugo/resources/resource_transformers
Bjørn Erik Pedersen 85ba9bfffb Add "hugo mod npm pack"
This commit also introduces a convention where these common JS config files, including `package.hugo.json`, gets mounted into:

```
assets/_jsconfig
´``

These files mapped to their real filename will be added to the environment when running PostCSS, Babel etc., so you can do `process.env.HUGO_FILE_TAILWIND_CONFIG_JS` to resolve the real filename.

But do note that `assets` is a composite/union filesystem, so if your config file is not meant to be overridden, name them something specific.

This commit also adds adds `workDir/node_modules` to `NODE_PATH` and `HUGO_WORKDIR` to the env when running the JS tools above.

Fixes #7644
Fixes #7656
Fixes #7675
2020-09-13 20:55:29 +02:00
..
babel Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
htesting Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
integrity Image resource refactor 2019-08-26 15:00:44 +02:00
js js.Build: Add SourceMap flag with inline option 2020-09-01 16:19:08 +02:00
minifier Some minify configuration adjustments 2020-03-20 20:35:57 +01:00
postcss Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
templates Revert "resources: Add data context to the key in ExecuteAsTemplate" 2020-03-21 18:38:19 +01:00
tocss/scss resources: Fix scss vs css import regexp 2020-03-17 08:03:25 +01:00