Coder Social home page Coder Social logo

Comments (6)

matfish2 avatar matfish2 commented on June 14, 2024

From the docs:

Compilation requires browserify with the stringify and require-globify transforms.

In order to dynamically generate the templates I have used browserify with the require-globify transform which allows for requiring an entire folder. I don't know if you can find a parallel loader for webpack because the require statement accepts parameters unique to this transform.
I suppose for now you can resort to using the precompiled version (under dist).

from vue-formular.

asmaps avatar asmaps commented on June 14, 2024

Thx for the quick response. One question: why don't you include the dist version in the package from npm? would it be possible to do that?

from vue-formular.

matfish2 avatar matfish2 commented on June 14, 2024

Because it doesn't belong there, and there is no benefit to including it. This is by definition an extraneous file. NPM package should contain only files used to build the package.
The precompiled file belongs in the github repo.

from vue-formular.

asmaps avatar asmaps commented on June 14, 2024

Ok, thx for the info. I'm not very experienced in building npm packages, so no idea what the does and don'ts are. I now included it manually and it seems to work.

I also searched for a "require-globify" loader for webpack, but couldn't find anything that uses the same syntax. But still nice project! Thx

from vue-formular.

matfish2 avatar matfish2 commented on June 14, 2024

I have removed the require-globify dependency (using vue partials instead).
Should work with webpack (+ html-loader) now.

from vue-formular.

asmaps avatar asmaps commented on June 14, 2024

Works like a charm! Thx for fixing!

from vue-formular.

Related Issues (15)

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.