Comments (4)
This is the expected behavior as css module is enable by default you need to reference the class name on each element. If you want to disable this functionality you'll need to modify the webpack config through kit config file (kyt.config.js).
from kyt.
@thomaspaillot thanks for reply. yes you are right i need to modify webpack file using kyt config file. do you know which configuration do i need to set exactly?
from kyt.
See this issue #243 for a way to disbale css modules or you can try to use this code:
modifyWebpackConfig: baseConfig => {
const rules = baseConfig.module.rules;
const cssRule = rules.find(rule => String(rule.test) === String(/\.css$/));
Reflect.deleteProperty(cssRule, 'loader');
cssRule.use = ['style-loader', 'css-loader'];
const scssRule = rules.find(rule => String(rule.test) === String(/\.scss$/));
Reflect.deleteProperty(scssRule, 'loader');
scssRule.use = ['style-loader', 'css-loader', 'sass-loader'];
return baseConfig;
}
from kyt.
@Irfanbsse2060 - let me know if you still need help with this - sorry for jumping in so late
from kyt.
Related Issues (20)
- Add numbers to setup prompts HOT 2
- Server side rendering broken? HOT 1
- support custom path / glob for kyt lint-* commands
- How to render data in server-side rendering from async action?
- Polyfill to vendor bundle HOT 1
- Kyt on Cloud 9
- Update Documentation for Kyt to use port 3001 when initializing kyt with static starter kyt HOT 1
- Update react-router to the latest version (React Router 4) HOT 2
- fs.writeFile throws ERR_INVALID_CALLBACK HOT 8
- No PostCSS Config found when running `npm run proto` HOT 3
- Universal React starter-kyt - Tools view
- Can't access the development server from the local network HOT 2
- JS filenames are not matching between publicAssets.json and build folder HOT 3
- Use an available node-sass version package in package.json HOT 1
- KYT OUTDATED HOT 1
- npm run dev error HOT 1
- Broken Link
- Warnings on "loose" option not set for `@babel/plugin-proposal-private-property-in-object`
- CI/CD currently not reporting status back to GitHub
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 kyt.