Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Copying All Files #4

Open
ddelella opened this issue Jun 8, 2017 · 1 comment
Open

Not Copying All Files #4

ddelella opened this issue Jun 8, 2017 · 1 comment

Comments

@ddelella
Copy link

ddelella commented Jun 8, 2017

The tool appears to copy only the .js files and not the .min.js. I also do not see any CSS files. The output also completely skipped bootstrap. Ideas?

conf.paths.node_modules = './node_modules';

gulp.task('deploy-lib', function () {
    return gulp.src(mainNPMFiles(), {
        base: conf.paths.node_modules
    })
        .pipe(gulp.dest(conf.paths.deploy + "/lib"))
});
@ripexz
Copy link

ripexz commented Aug 3, 2017

It depends on what the module's package.json has under the main property, usually it's not the minified version (which could be solved with #3, I guess) and you can't include other files (CSS/images/fonts, etc.).

Personally, I ended up using an array of paths to minified files for JS (which were concatenated to a single libs.js file) and just imported CSS files in LESS/SASS files, though you can easily set them up the same way as I suggested with JS. 😄

Either way, overrides would solve your minified problem, but for other assets you'll have to handle yourself, I don't handling extra files is what @drioemgaoin intended with this module 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants