Closed plourded closed 8 years ago
This line in index.js require relative path,
output += 'require("insert-css")(' + style + ');\n'
That cause a problem when we use vueify to make custom components. I always get the error:
gulp-notify: [Laravel Elixir] Browserify Failed!: Cannot find module 'insert-css' from '/Users/pathToMyLaravelProject/resources/assets/js/components'
'/resources/assets/js/components' is the folder where are my custom component.
That's requiring an npm module, not a relative link. You need to npm install insert-css.
insert-css
This line in index.js require relative path,
output += 'require("insert-css")(' + style + ');\n'
That cause a problem when we use vueify to make custom components. I always get the error:
gulp-notify: [Laravel Elixir] Browserify Failed!: Cannot find module 'insert-css' from '/Users/pathToMyLaravelProject/resources/assets/js/components'
'/resources/assets/js/components' is the folder where are my custom component.