mrodal / vue-inheritance-loader

Webpack loader to be used along with vue-loader for Single File Components that provides template extension
38 stars 5 forks source link

Laravel Mix v4 configuration #4

Closed quelo83 closed 5 years ago

quelo83 commented 5 years ago

Hi, what would be the configuration for Laravel Mix v4? Although I've tried I couldn't make it work. Thanks in advance!

mrodal commented 5 years ago

Sorry, but I've never used laravel mix 😕 But it looks like you can change the webpack config similar to whats explained in the readme looking at this: https://laravel-mix.com/docs/4.0/quick-webpack-configuration

Have you tried this?

mix.webpackConfig({
    module: {
      rules: [
        {
          test: /\.vue$/,
          loader: ['vue-inheritance-loader']
        }
      ]
    }
});