Open MaTeMaTuK opened 4 years ago
Webpack creates css file and css.map in dist folder. However JS don`t see styles in runtime.
Like there: https://github.com/formik/tsdx/issues/186#issuecomment-526548872
tsdx.config.js
const postcss = require('rollup-plugin-postcss'); const autoprefixer = require('autoprefixer'); const cssnano = require('cssnano'); module.exports = { rollup(config, options) { config.plugins.push( postcss({ plugins: [ autoprefixer(), cssnano({ preset: 'default', }), ], modules: true, inject: false, extract: !!options.writeMeta, }) ); return config; }, };
There is an integration test for CSS, but not CSS modules specifically. Will need to create a failing test for that to investigate further
Current Behavior
Webpack creates css file and css.map in dist folder. However JS don`t see styles in runtime.
Expected behavior
Like there: https://github.com/formik/tsdx/issues/186#issuecomment-526548872
Your environment
tsdx.config.js