hail2u / node-css-mqpacker

Pack same CSS media query rules into one using PostCSS
675 stars 60 forks source link

Issue in index.js ? #67

Closed dannybrown73 closed 6 years ago

dannybrown73 commented 6 years ago

After installing the latest version - css-mqpacker@7.0.0 via npm, there is an error when compiling in webpack:

SyntaxError: Unexpected token ...

specifically, on line 139 in index.js - node_modules/css-mqpacker/index.js:139

Commenting it out resolves the issue and everything appears to work.

module.exports = postcss.plugin(pkg.name, options => {
  const opts = {
    sort: false,
    // ...options // is this supposed to be here?
  };

Thanks for this plugin.

hail2u commented 6 years ago

See #65 and #66.