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

ERROR import multiple files in one @import #87

Open
betorobson opened this issue Apr 11, 2019 · 2 comments
Open

ERROR import multiple files in one @import #87

betorobson opened this issue Apr 11, 2019 · 2 comments

Comments

@betorobson
Copy link

SASS language allow us to import multiple files in on @import. For example:

@import
	"a/x",
	"a/y"
;

However I'am getting this error:
File to import not found or unreadable: a/y

This is a small example, in my project I've a lot of kind these @import.

My webpack loader config

	{
		test: /\.scss$/,
		use: [
			MiniCssExtractPlugin.loader,
			'css-loader',
			'sass-loader',

			{
				loader: 'sass-resources-loader',
				options: {
					resources: [
						'./src/sass/app.scss',
						'./src/sass/mixins/*.scss'
					]
				},
			}

		]
	}
@justin808
Copy link
Member

Hi @betorobson!

  1. Can you work around the issue by using 2 imports?
  2. If you really want this feature, do you want to make a PR?

@betorobson
Copy link
Author

For sure we are doing a work around, which is a import per file.

I will have a look at source code and maybe I can do a PR for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants