teambit / bit.envs

DEPRECATED - Bit compilers and testers were moved to https://github.com/teambit/envs
https://bit.dev/bit/envs
Other
23 stars 9 forks source link

Can't compile SASS/SCSS #12

Closed muhibbudins closed 5 years ago

muhibbudins commented 5 years ago

Hi there please fix this ASAP, i have some error with SASS/SCSS on Vue file like this :

Module not found: Error: Can't resolve 'sass' in '<project path>/.git/bit/components/bundlers/vue/bit.envs/0.0.3/dist/..$'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
                 You need to specify 'sass-loader' instead of 'sass',
                 see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed.

I think you must update this related code :

https://github.com/teambit/bit.envs/blob/b07dca8aaacd9e11d72c2db0a032ed2b41de0480/src/bundlers/vue/webpack.config.js#L56

to code like this :

  {
    test: /\.s[a|c]ss$/,
    loader: ["vue-style-loader", "css-loader", "sass-loader"]
  }

Thanks in advance

muhibbudins commented 5 years ago

Case closed #13