@fluent-vue/nuxt2-build-module

0.0.2 • Public • Published

@fluent-vue/nuxt2-build-module

This is fluent-vue build module for Nuxt 2.

What does it do?

  • Adds a fluent-vue-loader to support <fluent> custom blocks in SFC files
  • Adds a raw-loader to handle .ftl files
  • Enables SSR support for v-t directive

NOTE: When using v-t directive with v-bind directive, make sure to write v-t directive second. v-bind will clear all attributes added by v-t directive otherwise. This is a limitation of Vue 2 compiler.

Installation

Add this module to your dev dependencies:

pnpm add @fluent-vue/nuxt2-build-module -D

Add build module to your Nuxt 2 config.

{
  // ...
  buildModules: [
    '@fluent-vue/nuxt2-build-module'
  ],
  // ...
}

Package Sidebar

Install

npm i @fluent-vue/nuxt2-build-module

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

4.4 kB

Total Files

4

Last publish

Collaborators

  • demivan