Closed asmaps closed 8 years ago
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
).
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?
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.
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
I have removed the require-globify
dependency (using vue partials instead).
Should work with webpack
(+ html-loader
) now.
Works like a charm! Thx for fixing!
when I try to use vue-formular with webpack I get warnings in the npm run console and the browser (chrome) also just displays a white page and an error in the console
npm run dev
Chrome
Steps to reproduce
Edit
src/main.js
and add this:Can you give me a hint how to fix this?