browserify-css icon indicating copy to clipboard operation
browserify-css copied to clipboard

Add support for directly requiring css from node modules without

Open pavan142 opened this issue 4 years ago • 2 comments

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 [email protected]

pavan142 avatar Mar 01 '21 04:03 pavan142

Coverage Status

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

coveralls avatar Mar 01 '21 04:03 coveralls

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.

pavan142 avatar Mar 01 '21 23:03 pavan142