You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent the whole day Googling things such as "How to compile sass into css with Rollup and postcss". I have looked hundred of times at the documentation and code implementation, but I can't figure out how to compile all my .scss files under src/styles to dist/bundle.css and I have even less of a clue on how to configure my es-dev-server to allow me dynamically changing the files and re-bundling.
Could someone please advice on how to do?
This is what I managed to come up with but without a verbose option it is hard to debug and see what is wrong.
exportdefaultmerge(baseConfig,{// if you use createSpaConfig, you can use your index.html as entrypoint,// any <script type="module"> inside will be bundled by rollupinput: './index.html',plugins: [analyze(),postcss({use: ['sass'],plugins: [autoprefixer(),cssnano()],extract: true,modules: true,minimize: true,extensions: ['.scss','.css'],}),],// alternatively, you can use your JS as entrypoint for rollup and// optionally set a HTML template manually// input: './app.js',});
The text was updated successfully, but these errors were encountered:
I spent the whole day Googling things such as "How to compile sass into css with Rollup and postcss". I have looked hundred of times at the documentation and code implementation, but I can't figure out how to compile all my
.scss files
undersrc/styles
todist/bundle.css
and I have even less of a clue on how to configure myes-dev-server
to allow me dynamically changing the files and re-bundling.Could someone please advice on how to do?
This is what I managed to come up with but without a verbose option it is hard to debug and see what is wrong.
The text was updated successfully, but these errors were encountered: