Closed hajderr closed 8 years ago
@hajderr the problem is that tinymce-dist does not have a main property in its bower.json file. So main-bower-files does not know which file to include.
@ck86 alright, so I understand I should probably override it myself. Adding the below brings me one step closer. Question is, what's the best way to bring to rest of the module when running gulp
? The first issue concerns that themes/ directory is missing, which is required for tinymce to load.
"overrides" : {
"tinymce-dist" : {
"main" : "tinymce.js"
}
}
GET http://localhost:9000/dist/js/themes/modern/theme.min.js 404
I anticipate the same error with the plugins/ directory later on.
The main property could be an array:
"overrides" : {
"tinymce-dist" : {
"main" : [
"tinymce.js",
"themes/modern/theme.min.js"
]
}
}
Sure, thanks. I think I close this issue as the rest of the issues with including tinymce does not concern main-bower-files
.
Yes I know and I would not recommend to use main-bower-files for tinymce :D
@ck86 hehe, well I see what you mean. I ended up doing a simple gulp task, pasting below for future reference, should anyone stumble upon this issue.
gulp.task('bower-tinymce', function() {
//Copy resources from tinymce-dist that didn't make it in the bower-files
return gulp.src('src/main/resources/static/bower_components/tinymce-dist/**/*').pipe(gulp.dest('src/main/resources/static/dist/tinymce'));
});
Then you can simply reference it in your index.html
<script src="dist/tinymce/tinymce.js" type="text/javascript"></script>
I have a simple project with the following dependencies in bower.json and I'm having trouble with main-bower-files not including the dependency of angular-ui-tinymce, which is tinymce.
After
bower install
angular-ui-tinymce will pull in tinymce and the resultingbower_components
is the followingThis is the debug output from running
gulp
. As you can see thetinymce-dist
directory is skipped. Is there a conflict here with the file names or do I have to override the main?