hugo/resources
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
..
images
internal
page Fix some change detection issues on server reloads 2020-09-07 21:06:44 +02:00
postpub resources/js: Add option for setting bundle format 2020-07-22 10:13:30 +02:00
resource Add openapi3.Unmarshal 2020-07-06 20:03:36 +02:00
resource_factories
resource_transformers Add "hugo mod npm pack" 2020-09-13 20:55:29 +02:00
testdata
image.go
image_cache.go
image_test.go
post_publish.go
resource.go
resource_cache.go
resource_cache_test.go
resource_metadata.go
resource_metadata_test.go
resource_spec.go
resource_test.go
testhelpers_test.go
transform.go
transform_test.go