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

9.2장 yarn eject이후 sass 설정과정 #2

Open
rival6821 opened this issue Dec 12, 2019 · 0 comments
Open

9.2장 yarn eject이후 sass 설정과정 #2

rival6821 opened this issue Dec 12, 2019 · 0 comments

Comments

@rival6821
Copy link

          use: getStyleLoaders({
            importLoaders: 2,
            sourceMap: isEnvProduction && shouldUseSourceMap
          }).concat({
            loader: require.resolve('sass-loader'),
            options: {
                includePaths: [paths.appSrc + '/styles'],
                sourceMap: isEnvProduction && shouldUseSourceMap
            }
          }),

기존코드에서는 에러가 발생합니다.

          use: getStyleLoaders({
            importLoaders: 2,
            sourceMap: isEnvProduction && shouldUseSourceMap
          }).concat({
            loader: require.resolve('sass-loader'),
            options: {
              sassOptions: {
                includePaths: [paths.appSrc + '/styles'],
                sourceMap: isEnvProduction && shouldUseSourceMap
              }
            }
          }),

이렇게 options안에 sassOptions 안에 설정 이후 정상작동합니다.

-참조 : webpack-contrib/sass-loader#756

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

1 participant