ahhh - yes, I already did that, but without the js portion!

you can add another entry in your webpack.config.js if you would like a separate bundle out

  1. {
  2. entry: {
  3. bundle: "./index.js",
  4. editor: "./editor.scss"
  5. }
  6. };
(edited)

one ting I am trying to solve: how to get a separate bundle called editor.css. In that css file I add a smaller selection of scss files. These will be for tinyMCE

I problems i had in dev mode where that i did not include all genarated bundels so you should have a editor.js and an editor.css both need to be included. I found this module https://github.com/fqborges/webpack-fix-style-only-entries with it you can make css bundles only if you dont need a bundle with js. The downside if it is that it realy slows down the build task. (edited)

Attachments:
fqborges/webpack-fix-style-only-entries
fqborges/webpack-fix-style-only-entries
fqborges/webpack-fix-style-only-entries