Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extractCss wipes out css file #53

Closed
lfender6445 opened this issue Jul 10, 2017 · 1 comment
Closed

extractCss wipes out css file #53

lfender6445 opened this issue Jul 10, 2017 · 1 comment

Comments

@lfender6445
Copy link

// "babel-plugin-css-modules-transform": "^1.2.7",
// .babelrc
{
  "presets": [
    "es2015",
    "react"
  ],
  "plugins": [
    "transform-runtime",
    "transform-decorators-legacy",
    "transform-class-properties",
    "babel-plugin-transform-object-rest-spread",
    [
      "css-modules-transform",
      {
        "camelCase": true,
        "extractCss": "node_modules/flexboxgrid/dist/flexboxgrid.css"
      }
    ]
  ]
}

when I run my build command I am noticing the file node_modules/flexboxgrid/dist/flexboxgrid.css is mutated into an empty file - is there a way to build using this plugin in a way that is destructive?

@lfender6445 lfender6445 changed the title include wipes out css file extractCss wipes out css file Jul 10, 2017
@michalkvasnicak
Copy link
Owner

michalkvasnicak commented Jul 16, 2017

@lfender6445 I'm sorry for the late response, not much free time these days.

What should be an expected outcome? Appending to the file? If appending to a file, there is no way to know if you are updating existing declarations or not so every build is going to rewrite the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants