Usage with webpack
PrimozRome opened this issue · comments
Primož Rome commented
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
Primož Rome commented
I have installed html-loader and added this to the webpack configuration file and this solved the HTML loading issue
{ test: /\.html$/, loader: 'html' }
Matanya commented
Indeed, that is the equivalent of browserify
's stringify
transform
Decebal Dobrica commented
try vue-html loader; worked for me
Bryan Velastegui commented
Tanks @decebal this works
{ test: /\.html$/, loader: 'vue-html' }
Mohamed Ibrahem commented
how can i solve this with laravel elixir?