rollup-plugin-styles icon indicating copy to clipboard operation
rollup-plugin-styles copied to clipboard

I would like to be able to freely define the export path.

Open zhanxiaoge opened this issue 2 years ago • 1 comments

Please can you support custom export directories, also need to support relative paths, also the generated files follow the assetFileNames configuration by default, but some scenarios require fixed file names, thank you!

The directory structure I want to achieve.

|-- dist
|   |-- css
|       |-- index.css
|   |-- js
|       |-- index.js
|-- src
|   |-- css
|       |-- index.scss
|   |-- js
|       |-- index.js

Currently mode: "extract" is only available in the js directory.

|-- dist
|   |-- css
|   |-- js
|       |-- assets
|           |-- index-186392aa.css
|       |-- index.js
|-- src
|   |-- css
|       |-- index.scss
|   |-- js
|       |-- index.js  -> import '../css/index.scss'

zhanxiaoge avatar Apr 18 '23 16:04 zhanxiaoge

I would like to customize this as well, because:

  • https://github.com/jleeson/rollup-plugin-import-css/issues/42
  • https://github.com/thgh/rollup-plugin-css-only/issues/64

Related:

  • https://github.com/embroider-build/embroider/issues/2461#issuecomment-3423666073

NullVoxPopuli avatar Oct 20 '25 21:10 NullVoxPopuli