Code Monkey home page Code Monkey logo

rollup-plugin-purgecss's People

Contributors

ffloriel avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yapus jakxz

rollup-plugin-purgecss's Issues

Question: Why is rollup-plugin-purgecss outputting js?

Why does rollup-plugin-purgecss write js to the purged css files?
The purged css is wrapped in export default "...".

Expected result

/* main.css */

.div{background-color:black} ....

Actual behaviour

/* main.css */

export default ".div{background-color:black}...."

An in-range update of rollup-plugin-commonjs is breaking the build 🚨

Version 9.1.5 of rollup-plugin-commonjs was just published.

Branch Build failing 🚨
Dependency rollup-plugin-commonjs
Current Version 9.1.4
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

rollup-plugin-commonjs is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • βœ… ci/circleci: Your tests passed on CircleCI! (Details).
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 8 commits.

  • b5c719f 9.1.5
  • 81bea94 Merge branch 'mister-what-master'
  • b1cd440 Fix linting and slightly clean up code
  • e709667 9.1.4
  • 2dcfd2b Update changelog
  • 25d6af0 Make "from" a reserved word (#320)
  • 93f4ce4 input files as object - fixing and adding tests
  • a5e5bcd allow input files to be an object (i.e. named entrypoints)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Feature Request: More documentation please

How can I import the CSS into the JS file and then extract it into the dist directory purged of unused CSS with this plugin?

I have been using rollup-plugin-postcss and all that is needed is:

main.js
------------
import '../src/main.css';`
rollup.config.js
--------------------
import postcss from 'rollup-plugin-postcss';
export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
    format: 'iife',
    sourcemap: true,
  },
  plugins: [
    postcss({
      sourceMap: true,
      extract: true,
      minimize: true,
    }),
  ],
};

I am not quite sure how this plugin is meant to function? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.