Skip to content

Include doesn't copy -ms properties and extend is not working at all #39

@schel4ok

Description

@schel4ok

I have webpack in Laravel 6

webpack.mix.js

const mix = require('laravel-mix');

mix.react('resources/js/app.js', 'public/js');
mix.scripts([
    'public/js/app.js',
    'resources/js/includes/ral.js',
    'resources/js/includes/script.js'
],  'public/js/app.js')
	.sourceMaps()
	.version();
mix.sass('resources/sass/app.scss', 'public/css');

Then I have bootstrap, slick-carousel and sass-flex-mixin installed in node_modules folder and I import them in my app.scss

app.scss

@import '~bootstrap/scss/bootstrap';
@import '~slick-carousel/slick/slick';
@import '~slick-carousel/slick/slick-theme';
@import '~sass-flex-mixin/flex';
@import 'variables';
@import 'includes/fontello';
@import 'style';

Then in _style.scss I have

.mystyleinc { @include flexbox; }
.mystyleext { @extend %flexbox; }

As I understand from tests.css both styles should be compiled into code below

.flexbox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex; }

But I have different output. For mystyleinc I see only 3 of 5 properties. And mystyleext is absolutely empty.

.mystyleinc {
  display: -webkit-box;
  display: -moz-flex;
  display: flex;
}

What is wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions