Code Monkey home page Code Monkey logo

enb-bundle-postcss's Introduction

enb-bundle-postcss

Usage

Here a diff to add enb-bundle-postcss to project-stub configuration:

diff --git a/.enb/make.js b/.enb/make.js
index c98c578..163bf70 100644
--- a/.enb/make.js
+++ b/.enb/make.js
@@ -8,6 +8,7 @@ var techs = {
 
         // css
         stylus: require('enb-stylus/techs/stylus'),
+        postcss: require('enb-bundle-postcss/techs/enb-bundle-postcss'),
 
         // js
         browserJs: require('enb-diverse-js/techs/browser-js'),
@@ -46,11 +47,16 @@ module.exports = function(config) {
 
             // css
             [techs.stylus, {
-                target: '?.css',
+                target: '?.post.css',
                 autoprefixer: {
                     browsers: ['ie >= 10', 'last 2 versions', 'opera 12.1', '> 2%']
                 }
             }],
+            [techs.postcss, {
+                source: '?.post.css',
+                sourcemap: true,
+                plugins: [require('lost')()]
+            }],
 
             // bemtree
             // [techs.bemtree, { devMode: process.env.BEMTREE_ENV === 'development' }],
diff --git a/package.json b/package.json
index 23e6677..1290e2f 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,9 @@
     "enb-borschik": "^2.0.0",
     "enb-diverse-js": "^0.1.0",
     "enb-modules": "^0.2.0",
+    "enb-bundle-postcss": "tadatuta/enb-bundle-postcss",
     "enb-stylus": "^2.0.0",
+    "lost": "^6.5.0",
     "ym": "^0.1.2"
   },
   "scripts": {

enb-bundle-postcss's People

Contributors

tadatuta avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.