Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Vue RTL version setup with webpack


  1. Install webpack dependencies for RTL bundler using this command: npm install --save-dev webpack webpack-rtl-plugin remove-files-webpack-plugin css-loader mini-css-extract-plugin webpack-cli.
  2. Create a file named rtl.config.js and copy the webpack configuration from this gist.
  3. Execute the following command: yarn webpack --config=rtl.config.js --mode development. This command will execute the webpack configuration to build styles and output them to the src/assets/rtl folder.
  4. In the file src/App.vue, replace the LRT style import with the RTL style import from src/assets/rtl:

    @import "assets/sass/style";

    to

    @import "assets/rtl/style.rtl.css";

  5. In the file index.html, add the following attributes to the HTML tag: direction="rtl", dir="rtl", and style attribute with the value direction: rtl.
  6. Find and replace the following attributes in the project:
    • data-kt-menu-placement='bottom-start' => data-kt-menu-placement='bottom-end'
    • data-kt-menu-placement='right-start' => data-kt-menu-placement='left-start'




Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


can i change the direction in runtime when i change the language


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(