-
Notifications
You must be signed in to change notification settings - Fork 12k
Import form node_modules into dist folder #140
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
Comments
I think you can not, because the files imported in the vendor directory is hard-coded. Cf this file https://github.com/angular/angular-cli/blob/master/lib/broccoli/angular2-app.js Am I wrong ? Maybe we can do the same thing as wiredep ? read the main property of each NPM modules, and copy/paste these files in the vendor dir ? |
If you want to quickly solve this, have this ember-cli-build.js: /* global require, module */
var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
module.exports = function(defaults) {
var app = new Angular2App(defaults);
var app = app.toTree();
var vendors = new Funnel('node_modules', {
include: [
'bootstrap/scss/**/*'
],
destDir: 'vendor'
});
return mergeTrees([app, vendors], { overwrite: true });
} |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hi! I want to use bootstrap v4 with my project generated by angular-cli, but I can't find a way to import the bootstrap folder downloaded with npm inside dist/vendor .
How can I do?
Thank's
The text was updated successfully, but these errors were encountered: