tomachristian / css-entry-webpack-plugin

A Webpack plugin that simplifies creation of CSS-only bundles.
MIT License
39 stars 8 forks source link

node_modules\.css-entry-webpack-plugin@1.0.0-beta.4\lib\options.js:78 SyntaxError: Unexpected token ... #22

Open cnweibo opened 6 years ago

cnweibo commented 6 years ago

Hi, when i follow your instruction, there is following error:

node_modules\.css-entry-webpack-plugin@1.0.0-beta.4\lib\options.js:78
        let extensions = Array.isArray(options.extensions) ? [...options.extensions] : [options.extensions];
                                                              ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (C:\Users\Administrator\devenvironment\Code\webpackstudy\node_modules\.css-entry-webpack-plugin@1.0.0-beta.4\lib\CssEntryPlugin.js:13:16)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (C:\Users\Administrator\devenvironment\Code\webpackstudy\node_modules\.css-entry-webpack-plugin@1.0.0-beta.4\lib\index.js:7:23)
    at Module._compile (module.js:409:26)