Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mix functions: arrays of files vs. single files #5

Closed
MordantWastrel opened this issue Jan 23, 2020 · 2 comments
Closed

mix functions: arrays of files vs. single files #5

MordantWastrel opened this issue Jan 23, 2020 · 2 comments

Comments

@MordantWastrel
Copy link
Contributor

This page suggests that you can provide an array of files to functions like mix.css() or mix.js():

https://coldbox-elixir.ortusbooks.com/working_with_stylesheets

But if you do provide an array, this is the result:

PS F:\dev\inleague> npx webpack F:\dev\inleague\node_modules\webpack-cli\bin\cli.js:93 throw err; ^ TypeError: name.split is not a function at ElixirConfig.withoutExtension (F:\dev\inleague\node_modules\coldbox-elixir\src\config\config.js:181:14) at ElixirConfig.module.exports [as css] (F:\dev\inleague\node_modules\coldbox-elixir\src\config\ingredients\css.js:8:21) at F:\dev\inleague\webpack.config.js:30:9 at elixir (F:\dev\inleague\node_modules\coldbox-elixir\src\index.js:6:5) at Object.<anonymous> (F:\dev\inleague\webpack.config.js:29:18)

@MordantWastrel
Copy link
Contributor Author

This also happens if you use a named argument struct, e.g.

mix.vue( { "filename" : "main.js", "options" : { "name" : "argon-dashboard", "entryDirectory" : "./resources/vue-argon-dashboard-master/src" } } );

@jclausen
Copy link
Collaborator

This should be resolved in the current version. We use arrays of files quite often to merge multiple stylesheets in to a single file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants