JeffreyWay / Laravel-Elixir-v6-Vue-example

25 stars 4 forks source link

looking for info #2

Closed xmoki closed 8 years ago

xmoki commented 8 years ago

Hi, it's not really issues but i wanted some help or info if someone can give me:

1º - how or if i can use css preprocessors inside vue styles like before with laravel-elixir-vueify ex: (laravel-elixir-vue doesnt work or i'm doing something wrong).

2º - i know laravel-elixir 6.* is not released, but i'm preparing for the jump on a test project, webpack is a new thing for me. Before this version i used partition-bundle browserify plugin for lazy loading on my vue projects, i know webpack supports the same thing (http://router.vuejs.org/en/lazy.html#webpack). Is there anyway to do it on elixir 6.* with mix.webpack()?

edit: ok, so i found that even webpack through elixir already split the code into multiples files when using require(['./MyComponent.vue'], resolve), but i cant seem to specify a custom name for the files. In my case it generated 1 main file: app.js and multiple 1.app.js 2.app.js 3.app.js 4.app.js etc, it gets messy this way.

xmoki commented 8 years ago

ok i got the solutions:

1º: install webpack loaders

2º: can change chunk names `'/url': { component: (resolve) => { require.ensure([], () => { resolve(require('./pages/file.vue')); }, 'chunkName'); },``