Comments (3)
it's not possible at the moment because I wasn't sure how to best expose tweaking of the plugins nwb already manages via its different build configs to the user, but adding support for providing extra plugins might not take much effort.
nwb would need to pass its version of webpack to your config so you can use the plugins it ships with, so how does the following look as a speculative nwb.config.js
config API?
var MyConventionResolver = {
// ...
}
module.exports = function(deps) {
return {
type: 'react-app',
plugins: {
extra: [
new deps.webpack.ResolverPlugin([MyConventionResolver])
]
}
}
}
from nwb.
Looks fine, although why don't you have it under webpack.
module.exports = function(deps) {
return {
type: 'react-app',
webpack: {
plugins: [
new deps.webpack.ResolverPlugin([MyConventionResolver])
]
}
}
}
}
from nwb.
I was trying to reduce the amount of nesting needed for config when there wasn't as much of it , probably over-influenced by writing the initial documentation with code examples code per config item.
It does need to be made more consistent, along the lines of Karma config, which all lives under a kaema
prop.
from nwb.
Related Issues (20)
- Bundling all CSS and JS into one file each
- Feature request - React Browser Extensions boilerplate
- Support for ie11 in UMD module ?
- how can I use with customize-cra?
- The less file is not compiled into css ,nwb-less is already installed
- Error when running new react-component
- How to Config babel.config to extend classes
- When Sass modules are enabled, Sass imports stop working. How Can I enable both at the same time? HOT 1
- Including Dependency Stylesheet(s) in Build?
- Out of the box react-component project fails test execution with "TypeError: Object is not a constructor" HOT 6
- Export Webpack Configuration File HOT 1
- test failures with object.getprototypeof 1.0.1
- es lib There is no css file in it
- webpack.resolve.extensions: ❌ webpack = 'resolve' Unexpected prop in webpack config HOT 1
- Avoid NextJS module import error
- [QUESTION]how to ignore stories.js files from ./src when performing nwb build-react-component HOT 1
- Release with phantom dependencies removed?
- Testing.md Documentation Broken Link
- fresh nwb new react-component compilation crashes HOT 1
- Can't install nwb on apple m1 chip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nwb.