insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.57k stars 331 forks source link

how to exclude css modules of sass worked in node_module sass files #517

Open luckhpy opened 5 years ago

luckhpy commented 5 years ago

config below const path = require ('path'); module.exports = { type: 'react-component', npm: { esModules: true, umd: false, },

webpack: { rules: { 'sass-css': { modules: true, localIdentName: '[name][local][hash:base64:5]', include: /.module.scss/, includePaths: [path.resolve (dirname, 'src')], excludePaths: [path.resolve (dirname, 'node_modules')], }, }, }, };

after build i find it transfer sass in node_modules with css modules

busyzz-1994 commented 2 years ago

how to solve this problem