Skip to content

Dynamic building names? #3

@FabVillegas

Description

@FabVillegas

Just like the grunt tasks to monify css and js, any configuration to use in the obfuscator?

Example

cssmin: {
      options: {
        banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */'
      },
      files: {
        src: 'app/css/*.css',  // source files mask
        dest: 'build/',    // destination folder
        expand: true,    // allow dynamic building
        flatten: true,   // remove all unnecessary nesting
        ext: '.min.css'   // replace .js to .min.js
      }
    },
    obfuscator: {
      files: [
        'app/js/**/*.js'
      ],
      entry: 'app.js',
      out: 'build/*.js',
      strings: true,
      root: __dirname
    }

I found a solution by typing every file in the files array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions