import{ rollup }from'rollup';importcssfrom'rollup-plugin-css-porter'; rollup({input:'main.js',plugins: [ css({minified:false}) ] }).then(bundle=>{ bundle.write({format:'es',file:'bundle.js'}); }); Case 3: Output to a specific path if config the pluginoptions.dest. import{ roll...
import{rollup}from'rollup';importcssfrom'rollup-plugin-css-porter';rollup({input:'main.js',plugins:[css()]}).then(bundle=>{bundle.write({format:'es',file:'bundle.js'});}); Case 2: Output to a standalone css file without minified css file. The output destination is the same dir of...
import{rollup}from'rollup';importcssfrom'rollup-plugin-css-porter';rollup({input:'main.js',plugins:[css()]}).then(bundle=>{bundle.write({format:'es',file:'bundle.js'});}); Case 2: Output to a standalone css file without minified css file. The output destination is the same dir of...