Code Monkey home page Code Monkey logo

Comments (7)

iamstarkov avatar iamstarkov commented on May 24, 2024

think it is another block technology

what do you mean by "block technology"?

from getbem.github.io.

dab avatar dab commented on May 24, 2024

@iamstarkov for instance CSS and JavaScript — another block techs.

from getbem.github.io.

floatdrop avatar floatdrop commented on May 24, 2024

@dab it depends wholly on how you transfer your images to destanation folder. In most common case you will need to use something like https://www.npmjs.com/package/gulp-css-url-adjuster/

from getbem.github.io.

iamstarkov avatar iamstarkov commented on May 24, 2024

I don’t want to rely on "tech" term because it’s vendored by yandex, and very restricted to build flow. Also it is not tech, it is simple files. And it’s all up to you, how to store you code and how to build it. General modularization rule to separate code into small pieces is working great for bem.

from getbem.github.io.

iamstarkov avatar iamstarkov commented on May 24, 2024

@dab Also, @floatdrop is right, you can use one of the tons of npm modules to deal with rebasing urls in the file sources

from getbem.github.io.

dab avatar dab commented on May 24, 2024

@iamstarkov @floatdrop The question was about your recommended practices. Maybe you using some magic tool for this task 🎆 Already using npm modules for this.
Thanks.

from getbem.github.io.

iamstarkov avatar iamstarkov commented on May 24, 2024

@dab I used to use gulp.src('blocks/**').pipe(gulp.dest('dist/blocks')); and was fine with that. I implemented it in test assignment for csssr, you can check and play it here https://github.com/iamstarkov/csssr-profile

from getbem.github.io.

Related Issues (20)

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.