ember.js - Ember CLI: Broccoli Funnel not copying files -


i have several json files in ember project in directory called data within app directory:

app directory structure

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()]); }; 

empty public/data directory after running ember serve


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -