Coder Social home page Coder Social logo

plugin-scss's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @kevcjones
  • ๐Ÿ‘€ 40 years (and counting) of failing forward and learning the hard way
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on anything that interests me
  • ๐Ÿ“ซ How to reach me - @kevcjones or by email is fine too

plugin-scss's People

Contributors

bmayen avatar goldibex avatar kcoryjones avatar kevcjones avatar kevincjones avatar rubyboy avatar tim-intellipharm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plugin-scss's Issues

Allow libsass options to be passed through to sass.js

It would be nice if plugin-scss allowed for libass options to be specified in your system config.

This would allow the user to configure libsass for their needs, for example, allowing them to provide includePaths for sass imports.

[SyntaxError: Unexpected token }]

Running builder.buildStatic on a barebones Angular2 Hello World app and receive the following error:

Error loading ...jspm_packages/github/KevCJones/[email protected]/sass-inject-build.js] originalErr: [SyntaxError: Unexpected token }] }

Publish to NPM?

I'm trying to integrate this with our build system which uses SystemJS to output sfx builds. It's a collection of gulp tasks distributed via NPM. As such I'm forced to either point directly to the plugin's github repo in my build system's package.json or manually jspm install it in each project. Neither solution is really ideal. Given that this exposes functionality that can be used both on the server and client sides, I think it would be more flexible to publish to NPM.

Add caching

Compiler is run even when there have been no changes to the scss. In large applications this is a severe performance hit.

systemjs/builder#593

JSPM Bundle gives 'undefined' error

I'm trying to bundle several sass (indented syntax) files. But the output gives me no clue about what's wrong.

[plugin-scss] Stacklite :: github:KevCJones/plugin-scss/sass-inject-build.js -> npm:sass.js [plugin-scss] undefined

The lines in the output are repeated for every import in my source files.

I'm importing the styles like this:

import styles from '../styles/layout.sass!scss';

[SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]

I receive this error when trying to build a jspm static bundle:

{ [Error: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
            at Object.exports.runInThisContext (vm.js:53:16)
        Evaluating C:/../jspm_packages/github/KevCJones/[email protected]/index.js
        Error loading C:/../jspm_packages/github/KevCJones/[email protected]/index.js]
  originalErr: [SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode] }

Autoprefixer support

Could you integrate autoprefixer into your plugin and make it configurable via System.config?

TypeError: Path must be a string. Received undefined

I use this plugin in my project https://github.com/flaviait/ng2-jspm-template and it worked perfectly well together with jspm version 0.17-beta.13 and 0.17-beta.14.
Howerver, a few days ago I start to get an error when running jspm bundle which seems to be related to this plugin:

err  TypeError: Path must be a string. Received undefined
      at assertPath (path.js:7:11)
      at Object.dirname (path.js:1324:5)
      at [project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6645:38
      at [project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6661:24
      at Array.map (native)
      at OptionManager.resolvePresets ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6650:22)
      at OptionManager.mergePresets ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6640:12)
      at OptionManager.mergeOptions ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6616:16)
      at OptionManager.init ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:6732:12)
      at File.initOptions ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:7375:77)
      at new File ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:7319:24)
      at Pipeline.transform ([project-root]/jspm_packages/npm/[email protected]/systemjs-babel-node.js:3923:18)
      at [project-root]/jspm_packages/npm/[email protected]/plugin-babel.js:154:24
  Error loading [project-root]/jspm_packages/github/KevCJones/[email protected]/index.js

This error seems to occur only on some machines. For example it occurs on my private machine (Arch Linux with nvm) and on a colleague's machine (Ubuntu) but it works on my machine at work (Linux Mint) and on the travis build.

When compiling inside the browser it still works.

IE 11 and Edge Failures

Anyone else having issues with IE 11 or Edge?

IE 11:

SCRIPT0: Out of stack space
sass.worker.js (7,1)

Edge:

SCRIPT5022: (SystemJS) SyntaxError: Unterminated string constant
    Evaluating http://localhost:3000/app/app.styles.scss
system.src.js (5123,3)

Chrome works as expected.

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.