Open michalsnik opened 7 years ago
We agree and will be implementing this very soon! Sorry for the doc mismatch.
I'm sure the workaround below is not a good way to do it, and yes I'm using private API here, but it works for me at the moment (it will also fingerprint vendor.js for production as you expect) :
$ npm install --save-dev broccoli-concat broccoli-merge-trees
ember-cli-build.js
:
'use strict';
const GlimmerApp = require('@glimmer/application-pipeline').GlimmerApp;
const Concat = require('broccoli-concat');
const MergeTrees = require('broccoli-merge-trees');
class CustomApp extends GlimmerApp {
publicTree() {
let originalTree = super.publicTree();
let vendorScripts = new Concat('node_modules', {
inputFiles: [
'core-js/client/core.min.js',
'whatwg-fetch/fetch.js'
],
outputFile: 'vendor.js',
});
return new MergeTrees([originalTree, vendorScripts], { overwrite: true });
}
}
module.exports = function(defaults) {
let app = new CustomApp(defaults, {
fingerprint: {
exclude: ['apple-touch-icon', 'favicon', 'mstile', 'android-chrome']
}
});
return app.toTree();
};
I've started work on this here. It's far from complete at this point.
Hey. I am playing with Glimmer today. I was trying to import bootstrap-sassy, but the ember app crash.
After trying to reinitiate the server I receive that message :
app.import is not yet implemented for GlimmerApp
Any solution or work around ?
@jamesarosen - Have you had a chance to make any progress?
Any news on this, I'd like to take advantage of most ember addons inside glimmer apps.
I could help in getting this done, however I'd need some guidance on what to do.
Still not implemented import
function, is there any solution?
Hey, I was playing with Glimmer today and found out that it's application pipeline doesn't have
import
method, but in the generated blueprint there is information that it should be there:When trying to import any additional resources I'm getting
app.import is not a function
. I think it would be really good to have this in glimmer pipeline as well.