score:8
Accepted answer
Use this:
ExtractTextPlugin.extract('style','css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap')
i.e. add the sourceMap
param to both css
& sass
loaders. It said so in sass-loader docs.
score:2
This is how I have my css modules set up:
'css-loader?modules&sourceMap&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!',
Source: stackoverflow.com
Related Query
- How to get sourcemaps working for React Css Modules?
- CSS modules not working for react version 16.6.0
- How to get Font Awesome Icon in react app for a pseudo element in css
- How to make CSS grid working in react with CSS modules stylesheet
- How to get rid of underline for Link component of React Router?
- How to apply global styles with CSS modules in a react app?
- How to import CSS modules with Typescript, React and Webpack
- How to style child components in React with CSS Modules
- using css modules in react how can I pass a className as a prop to a component
- How to get code completion for typed react component properties?
- How to over-ride an @media css for a material-ui react component
- how to get list of all registered synthetic event handlers/listeners for a React Component?
- Several CSS files for react CSS modules
- How can I opt for React Styled-Components to generate a physical CSS file?
- how to deal with css imports for react server-side render
- How to get full day names for week in month view in react big calendar
- How can I test css properties for a React component using react-testing-library?
- How to setup rollup for css modules in TypeScript
- How do I get VS Code to understand my aliases in react native for command click?
- How to disable css modules for one file in webpack
- How to watch sass folder for changes without compiling in css in react
- How to make React component wait for redux store variables to get set?
- Css not working for intro.js module in React
- How to apply CSS animation for React Array.map() iterations?
- page title not available with jest/enzyme for testing react app, how to get the title?
- How to get full test coverage for the react code
- How to get CSS Modules to work with Reactstrap cssModule propType?
- How to get Emotion/Rollup/Typescript component CSS to show up in consuming React app?
- How can I get a full working example with React 0.14 and Typescript 1.6.2 and Rails 4.2
- How to re-write -webkit-*** for CSS in JS React
More Query from same tag
- How can I pass props from one component to another using Link and router in react
- Expose Loader does not export module globally
- ImmutableJS - filtering nested Map{List(Map{...})}
- Sync PouchDB with server
- Adding a new line in a JSX string inside a paragraph - React
- Idiomatic way to listen to model changes
- Can I share a component instance across multiple trees in React?
- How can I toggle accordion panels individually using React Hooks?
- How to use 'pagehide' event in safari to prevent unloading?
- babel unexpected token react module build failed
- React Google Maps - Marker positions are not binding dynamically
- How to identify about month change in input[type=date]
- Reshape object into another object
- Filtrer array recursive
- How to query for a signed in user's data in Graphql and AWS Cognito
- When NOT to use Formik's FastField?
- keep the keyboard open on click outside of the keyboard area, javascript
- How can I stop 404 UI rendering over protected routes
- react-router-dom conditional rendering
- GET http://localhost:5000/error 404 (Not Found)
- Sort each column of the table
- How to read json file from my src folder in my react app using webpack-dev-server?
- How do I test an element that is outside the enzyme wrapper?
- API.js:54 Uncaught (in promise) TypeError: this.state.data.map is not a function
- React-redux: allowing users to give feedback on a component
- Pass state from child component to parent component
- React State listen for Object Attribute Change
- React.js load markdown file from system as string
- How do I replace the current component content with other component content in React
- Can you use this.props.history.push to pass props to a different component than the pathname says?