B
B
BonBon Slick2020-01-13 10:53:00
phpstorm
BonBon Slick, 2020-01-13 10:53:00

Why does the plugin create this file format?


https ://plugins.jetbrains.com/plugin/11443-vue-com...

my-module
  my-module.vue
  _my-module.scss

File: my-module.vue
<template>
        <div class="my-module">
            <pre v-text="$attrs"/>
        </div>
    </template>

    <script>
        export default {
            props: {
            },
        };
    </script>

File: _my-module.scss
.my-module {
        // Vars

        // Support

        // Module
        & {
            //
        }

        // Facets

        // States
    }

however scss is never imported into the .vue component, why are the files created this way?
Perhaps there are some new features in vue-cli that I missed, or is it additional webpack 4 configs for auto-importing styles?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question