I’ve one entry file containing world libs and scripts for the location at /src/index.js
and a listing in my theme root at namespace-blocks
containing dirs for every block with block.json
‘s and index.js
‘s in every listing. Can I take advantage of wp-scripts with out extending it with a webpack config to compile each into separate directories?
Utilizing npm i concurrently
i am ready to do that and simply output every construct to separate construct directories in my theme root like construct
and build-blocks
however this is not perfect.
At present my NPM scripts seem like this:
"scripts": {
"begin": "concurrently --kill-others "npm run begin:custom-directories" "npm run begin:{custom}"",
"begin:custom-directories": "wp-scripts begin --webpack-copy-php --webpack-src-dir=diesel-blocks --output-path=build-blocks",
"begin:{custom}": "wp-scripts begin src/index.js --output-path=construct"
},