ember.js - Ember CLI: Broccoli Funnel not copying files -
i have several json files in ember project in directory called data within app directory:
i attempting copy these files data directory within public directory using broccoli funnel. however, when running ember serve, files not copied , no errors reported. after reading answer this question, started using broccoli-merge-trees did not fix issue.
/* eslint-env node */ 'use strict'; const emberapp = require('ember-cli/lib/broccoli/ember-app'); const funnel = require('broccoli-funnel'); const mergetrees = require('broccoli-merge-trees'); module.exports = function(defaults) { let app = new emberapp(defaults, { // add options here }); var json = new funnel('app/data', { destdir: 'public/data', include: ['*.json'] }); return new mergetrees([json, app.totree()]); };


Comments
Post a Comment