bastienGranger / vue-material-datepicker

55 stars 16 forks source link

Fix for 'Cannot resolve module 'scss'' #2

Closed vnctaing closed 7 years ago

vnctaing commented 7 years ago

In src/components/DatepickerAgenda.vue and in /src/Datepicker.vue, scss was used in the components. e.g.

<style lang="scss">
    .datepicker-container {
        position: relative;
    }
</style>

When trying to bundle with webpack, it threw an error : Cannot resolve module 'scss', this is because the vue loader was not configured to pre-process the scss.

I saw the solution on https://github.com/vuejs/vue-loader/issues/58

Also I have added a .gitignore for node_modules and dist folder for the sake of diffs clarity and in order to save payload (235Mb) when cloning the repo.

I have just tested that it compiles well, I did not figure how to test if the generated file is correct tough, could you check ?