matfish2 / vue-tables

Vue.js grid components

Home Page:https://www.npmjs.com/package/vue-tables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage with webpack

PrimozRome opened this issue · comments

Did you use this with webpack maybe? Seems to be a problem... I am getting this error:

./~/vue-tables/lib/table-template.html
Module parse failed: /Users/primozrome/Documents/Web/webshop-frontend/node_modules/vue-tables/lib/table-template.html Line 1: Unexpected token <
You may need an appropriate loader to handle this file type.
| <div class="VueTables VueTables--[[source]]">
|   <div class="row">
|     <div class="col-md-6">
 @ ./~/vue-tables/lib/helpers/generate-table-html.js 3:17-50

I have installed html-loader and added this to the webpack configuration file and this solved the HTML loading issue

{ test: /\.html$/, loader: 'html' }

Indeed, that is the equivalent of browserify's stringify transform

try vue-html loader; worked for me

Tanks @decebal this works

{ test: /\.html$/, loader: 'vue-html' }

how can i solve this with laravel elixir?