Coder Social home page Coder Social logo

Comments (3)

moyus avatar moyus commented on May 14, 2024 2

Fixed in v1.2.2

from laravel-mix-nunjucks.

moyus avatar moyus commented on May 14, 2024

Cross platforms compatibility is really a pain in the ass 😂, I will fix it in the next release version.

from laravel-mix-nunjucks.

SamBrishes avatar SamBrishes commented on May 14, 2024

That's true. ^^

Could you also change the glob value from

"!" + path.posix.join(this.base, `**/_**/*`)

to

"!" + path.posix.join(this.base, `**/_**/**/*`)

since then it would be possible creating folders in hidden directories without the need of another underscore on each sub-folder... Like the following structure:

_partials/
    page/
        ...
    content/
        ...
    macros/
        ...

Without the changed glob, the sub-folders are rendered (at least on Windows).


I also tried the front-matter header today, and noticed a small bug (?): I guess this line should be formatter.body instead of template, otherwise the whole front-matter content is passed to the resulting HTML file. (at least if you declare a layout value within the front-matter header... without that you just get the No layout declared in ... message in the console.)

from laravel-mix-nunjucks.

Related Issues (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.