Loader for custom blocks
See original GitHub issueHi!
When I try to add the <route-meta>
to a page i get the following error:
Module parse failed: Unexpected token (3:22)
You may need an appropriate loader to handle this file type.
|
| {
> "requerAutenticacao": true
| }
|
It looks like we have to implement a loader for this custom tag.
So, I’d like to make a suggestion: why not add the “how-to” on the docs under metadata? Maybe offer a default implementation inside the library as an option.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Custom Blocks | Vue Loader
You can define custom language blocks inside *.vue files. Loaders applied for a custom block are matched based on the lang attribute of...
Read more >intlify/vue-i18n-loader - GitHub
The locale messages defined at i18n custom blocks are json format default. Source importing. you also can: <i18n src="./myLang ...
Read more >Vuejs - custom loader to manipulate SFC template block
I'd like to manipulate Vue SFCs 'template' blocks during Webpack compilation. The goal. Being able to (mainly) remove some parts based on ...
Read more >Replacing create-guten-block with a custom Webpack
It's a little longer. This file tells Webpack what files to look for and what to do with them – it will use...
Read more >Loader - Genesis Custom Blocks (1.5.1) - PluginTests.com
Home · Genesis Custom Blocks · 1.5.1 (latest) · Code · Classes; Loader. Genesis\CustomBlocks\Blocks\Loader A. Total Complexity, 69. Dependencies, 4.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my project, create new file
meta-loader.js
In your webpack.config.js, add like this:
In my project to cmmand
yarn dev
, Oh yeah! It’s look like Okhttps://vue-loader.vuejs.org/guide/custom-blocks.html#example
I’m created a webpack plugin to use
vue-route-generator
, bucase want to support mutil-pages, The projectvue-cli-plugin-auto-routing
didn’t.NVM, it’s an issue with the vuetify-loader - it’s trying to load the block while it shouldn’t…