如何使用grunt使tinymce在开发和dist环境中工作?

Avi*_*tal 5 tinymce node.js gruntjs bower

我正在用咕噜声和凉亭包裹管理.我使用tinymce包为我的应用程序,当我使用grunt服务evrything正常工作,当我使用grunt服务:dist,资源管理器搜索tinymce插件在不正确的路径,而铬和mozila找到插件.

我想也许我需要将tinymce的插件网址指向相关路径,但它不可能与theme_url和其他微小mce属性相关.

我能做什么?我不想把所有的东西都复制到dist.

Sur*_*een 2

在 Gruntfile.js 中

// Copies remaining files to places other tasks can use
copy: {
            dist: {
                files: [{
                    expand: true,
                    dot: true,
                    cwd: '<%= yeoman.app %>',
                    dest: '<%= yeoman.dist %>',
                    src: [
                        '*.{ico,png,txt}',
                        '.htaccess',
                        '*.html',
                        'modules/**/*.html',
                        'images/{,*/}*.*',
                        'styles/fonts/{,*/}*.*'
                    ]
                }, {
                    expand: true,
                    cwd: '.tmp/images',
                    dest: '<%= yeoman.dist %>/images',
                    src: ['generated/*']
                }, {
                    expand: true,
                    cwd: 'bower_components/bootstrap-sass-official/assets/fonts/bootstrap/',
                    src: '*',
                    dest: '<%= yeoman.dist %>/fonts'
                }, {
                    expand: true,
                    cwd: 'bower_components/tinymce-dist/themes/modern/',
                    src: ['**'],
                    dest: '<%= yeoman.dist %>/core/themes/modern/'
                }, {       
                    expand: true,
                    cwd: 'bower_components/tinymce-dist/skins/',
                    src: ['**'],
                    dest: '<%= yeoman.dist %>/core/skins/'
                }, {
                    expand: true,
                    cwd: 'bower_components/tinymce-dist/plugins/link/',
                    src: ['**'],
                    dest: '<%= yeoman.dist %>/core/plugins/link/'
                }, {
                    expand: true,
                    cwd: 'bower_components/font-awesome/fonts/',
                    src: '*',
                    dest: '<%= yeoman.dist %>/fonts'
                }]
            },
            styles: {
                expand: true,
                cwd: '<%= yeoman.app %>/modules',
                dest: '.tmp/styles/',
                src: '{,*/}*.css'
            }
        },
Run Code Online (Sandbox Code Playgroud)