Not picking up config?
See original GitHub issueProbably something I did wrong though I followed a guide.
// craco.config.js
const path = require("path")
module.exports = {
output: {
chunkFilename: '[id]CCCCCC.js',
path: path.resolve(__dirname, 'dist')
}
}
//package.json
"scripts": {
"build": "craco build",
},
Then I tried to build it:
C:\dev\projects\myApp>npm run build
> myApp build C:\dev\projects\myApp
> craco build
540.62 KB build\static\js\main.97530591.chunk.js
333.75 KB build\static\js\2.4b6e91f0.chunk.js
7.44 KB build\static\css\main.0eb1ccc4.chunk.css
775 B build\static\js\runtime-main.9d14031a.js
But it still gets built into the build
folder, not dist
, and neither do chunks have CCCCCC in the name. I tried few other settings like filename, but also not picking up.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
flake8 not picking up config file - Stack Overflow
For anyone running into this more recently: I turns out flake8 4.x no longer supports loading .config/flake8 , and seems to have no...
Read more >Remark not picking up configuration #187 - GitHub
@areohbe Correct, remark picks up configuration files from the file and up, but your package.json and .remarkrc are in a different path.
Read more >Troubleshoot AWS Config rules that don't work
Various issues can cause managed AWS Config rules to not work, including permissions, resource scope, or configuration change items.
Read more >Logrotate not picking up or acting on new configuration file
It appears that logrotate works using the logrotate.status file. In this status file, the log's modified date is marked down.
Read more >Troubleshooting your configuration - Home Assistant
Perhaps an integration is not showing up or is acting strangely. ... Home Assistant will print out the configuration directory it is using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
craco.config settings:
It produced the build directory at the same time as the dist directory and produced an error:
File sizes after gzip:
ENOENT: no such file or directory, open ‘C:\Users\Admin\Desktop\ibfweb\build\run time-main.js’ error Command failed with exit code 1.
If you still want to do it, I suggest you override the webpack config manually using:
The following should work:
More info at: https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#configuration-overview