Code Monkey home page Code Monkey logo

gulp-lasso's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gulp-lasso's Issues

Unable to run gulp task with optimizerConfig property defined

Our optimizer-config.json

{
  "plugins": [],
  "fileWriter": {
    "outputDir": "./tmp/static/",
    "fingerprintsEnabled": false,
    "urlPrefix": "static/"
  },
  "minify": true,
  "resolveCssUrls": true,
  "bundlingEnabled": true
}

gulp optmizer task:

var optimizer = require('gulp-optimizer');
var gulp = require('gulp');

gulp.task('optimizer', function(){
  gulp.src(['app/**/*.html'])
    .pipe(optimizer({
      "configFile": "./optimizer-config.json", //Path to a JSON optimizer configuration file
      "dependencies": [
        "./app/less/app.less",
        "require-run: ./app/scripts/main"
      ],
      "plugins": [
        "optimizer-less"
      ],
      "mode": 'production'
    }))
    .pipe(gulp.dest('build'));
});

terminal output

rscheibinger@rscheibinger-Precision-T5600:~/code/hackweek/example-project/app$ gulp optimizer
[11:22:15] Working directory changed to ~/code/hackweek/example-project
[11:22:16] Using gulpfile ~/code/hackweek/example-project/gulpfile.js
[11:22:16] Starting 'optimizer'...
[11:22:16] Finished 'optimizer' after 9.15 ms

/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/node_modules/property-handlers/lib/index.js:23
        throw e;
              ^
Error: Error while handling properties for config: Invalid option of "configFile". Allowed: require, minify, minifyJS, minifyCSS, resolveCssUrls, bundlingEnabled, bundlingStrategy, fingerprintsEnabled, checksumsEnabled, outputDir, urlPrefix, includeSlotNames, fingerprintLength, flags, extensions, enabledExtensions, bundles, inPlaceDeploymentEnabled, inPlaceDeployment, plugins, projectRoot, cacheProfile, cacheDir, cacheProfiles, bundleReadTimeout
    at error (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/node_modules/property-handlers/lib/index.js:21:17)
    at invokeHandlers (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/node_modules/property-handlers/lib/index.js:41:17)
    at Object.load (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/lib/config-loader.js:349:5)
    at create (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/lib/optimizer.js:52:31)
    at getDefaultPageOptimizer (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/lib/optimizer.js:65:32)
    at Object.optimizePage (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/optimizer/lib/optimizer.js:103:12)
    at DestroyableTransform._transform (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/index.js:53:19)
    at DestroyableTransform.Transform._read (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/home/rscheibinger/code/hackweek/example-project/node_modules/gulp-optimizer/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.