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

Laravel Spark and Tailwind #222

Closed
dolbex opened this issue Nov 20, 2017 · 2 comments
Closed

Laravel Spark and Tailwind #222

dolbex opened this issue Nov 20, 2017 · 2 comments

Comments

@dolbex
Copy link

dolbex commented Nov 20, 2017

Laravel Spark: dev-master
Laravel: v5.5.21
Laravel Mix: 0.12.1

I seem to be having an issue with the sass and the resolve-url-loader. I've seen the other issues (48) on here regarding the fix to disable processCssUrls and in the fantastic documentation. However, I'm still getting the following warning:

 WARNING  Compiled with 1 warnings                                                                                                                                                                                                                                    2:18:59 PM

 warning  in ./resources/assets/scss/app.scss

(Emitted value instead of an instance of Error)   resolve-url-loader cannot operate: CSS error
  ./resources/assets/scss/app.scss:3708:3: missing '}'

Here is my webpack.mix.js

mix.sass('resources/assets/scss/app.scss', 'public/css')
   .options({
      processCssUrls: false,
      postCss: [ tailwindcss('tailwind.js') ],
   })
   .js('resources/assets/js/app.js', 'public/js')
   .webpackConfig({
        resolve: {
            modules: [
                path.resolve(__dirname, 'vendor/laravel/spark/resources/assets/js'),
                'node_modules'
            ],
            alias: {
                'vue$': 'vue/dist/vue.js'
            }
        }
   });
@adamwathan
Copy link
Member

Hey @dolbex! I bet this is due to being on such an old version of Laravel Mix.

Try upgrading to the latest and see if that helps:

# If using npm
npm install laravel-mix@^1.6.1

# If using yarn
yarn add laravel-mix@^1.6.1

@dolbex
Copy link
Author

dolbex commented Nov 20, 2017

Adam,

Thanks so much for the quick reply. I didn't even realize it was that behind. All green now.

@dolbex dolbex closed this as completed Nov 20, 2017
DCzajkowski pushed a commit to DCzajkowski/tailwindcss that referenced this issue Jul 23, 2019
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