matejsvajger / laravel-mix-pug

Laravel Mix Plugin for compiling Pug/Jade templates.
MIT License
21 stars 23 forks source link

laravel-mix Mix.addTask is removed #9

Closed vpapaloukas closed 5 years ago

vpapaloukas commented 5 years ago

laravel-mix with commit Remove custom asset handling causes plugin to error on Mix.addAsset as it is removed.

Can there be a workaround on how the plugin will function without using addAsset?

dsktschy commented 5 years ago

I submitted a pull request to resolve this issue. https://github.com/matejsvajger/laravel-mix-pug/pull/10

Assets are added in this part, so Mix.addAsset is not needed. https://github.com/JeffreyWay/laravel-mix/blob/9acd47220fd671f2b317ccc4b109ad06b5ea78da/src/webpackPlugins/CustomTasksPlugin.js#L37

matejsvajger commented 5 years ago

10 merged and released a new version 0.3.0 that adds support for laravel-mix v4.