I have a config setting I'd like to include in Brocfile.js, so that I don't set it in the file directly. For example, in app/config/config.js I would have something like:
export default {
path: 'http://abc.blah.com/'
};
In my Brocfile, I'd like to do something like:
if (process.env.EMBER_ENV === 'development') {
app.options.inlineContent = {
assetPrefix: {
content: config.path
}
};
}
How do I import/include config.js in my Brocfile, and use its path property? I tried importing, but get:
import config from 'app/config/config.js';
^^^^^^
Unexpected reserved word
Aucun commentaire:
Enregistrer un commentaire