jedfoster / Readmore.js

A lightweight jQuery plugin for collapsing and expanding long blocks of text with "Read more" and "Close" links.
http://jedfoster.com/Readmore.js/
MIT License
1.5k stars 721 forks source link

v3.0.0-1 UglifyJs Error #242

Open iglv opened 5 years ago

iglv commented 5 years ago

After install Readmore.js, webpack build error:

ERROR in bundle.js from UglifyJs
Unexpected token: name «uniqueIdCounter», expected: punc «;» [bundle.js:17835,4]
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--4-1!node_modules/postcss-loader/src/index.js??ref--4-2!node_modules/sass-loader/lib/loader.js!scss/style.scss:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader??ref--4-1!./node_modules/postcss-loader/src??ref--4-2!./node_modules/sass-loader/lib/loader.js!./scss/style.scss 210 KiB {0} [built]
        + 1 hidden module
error Command failed with exit code 2.
"uglifyjs-webpack-plugin": "^2.1.3"
fatheaddrummer commented 5 years ago

+1