Open cpmotion opened 5 years ago
Set your extract
parameter to a filename relative to the rollup.config.js file and it should export a single file. E.g.
postcss({
extract: 'dist/pkg.css',
sourceMap: true,
plugins: [mqpacker()]
}),
import React, { Component } from "react";
import { Button } from "antd";
**import "styles/demo.pcss";**
class Demo extends Component {
render() {
return (
<div className="demo-container">
<div className="demo-wrapper">this is my demo wrapper</div>
<Button type="primary">this is demo component</Button>
</div>
);
}
}
export default Demo;
the path is wrong , I missed something?
Set your
extract
parameter to a filename relative to the rollup.config.js file and it should export a single file. E.g.
No, this will create a folder named "dist" for every bundle.
any updates?
Current rollup.config.js looks as such:
Works fine but I get separate css and css.map files for each module type. I just want the JS files and a single css/css.map file. Possible??