cheton / browserify-css

A Browserify transform for bundling, rebasing, inlining, and minifying CSS files.
http://cheton.github.io/browserify-css/
MIT License
144 stars 22 forks source link

Add support for directly requiring css from node modules without #72

Open pavan142 opened 3 years ago

pavan142 commented 3 years ago

prefixing with "../node_modules"

Instead of requring @import "../node_modules/bootstrap/dist/css/bootstrap.css"; now it can be required as @import "bootstrap/dist/css/bootstrap.css";

Used https://github.com/browserify/resolve to implement this

Signed-off-by: pavan142 pa1tirumani@gmail.com

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.7%) to 82.326% when pulling 6eb08352a45defb972690d14bd47821bf1d3977c on pavan142:implicitNodeModuleSupport into 824ac411e592980f5544ea93124d7cccd7be9c9f on cheton:master.

pavan142 commented 3 years ago

Hi, the travis ci build is failing for Node.js version 6. To debug, I have checked Travis CI build on the latest master branch, and the build is failing even with current baseline. Can some one help me override this ?

npm ERR! Linux 4.4.0-104-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "install" "-g" "npm"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! path /home/travis/.nvm/versions/node/v6.17.1/lib/node_modules/.staging/@npmcli/ci-detect-ccabb611
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/travis/.nvm/versions/node/v6.17.1/lib/node_modules/.staging/@npmcli/ci-detect-ccabb611' -> '/home/travis/.nvm/versions/node/v6.17.1/lib/node_modules/npm/node_modules/@npmcli/ci-detect'
npm ERR! enoent ENOENT: no such file or directory, rename '/home/travis/.nvm/versions/node/v6.17.1/lib/node_modules/.staging/@npmcli/ci-detect-ccabb611' -> '/home/travis/.nvm/versions/node/v6.17.1/lib/node_modules/npm/node_modules/@npmcli/ci-detect'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/cheton/browserify-css/npm-debug.log
npm ERR! code 1
The command "npm install -g npm" failed and exited with 1 during .
Your build has been stopped.