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

Variables import is not working from other files #85

Open
killerdejavu opened this issue Feb 17, 2017 · 3 comments
Open

Variables import is not working from other files #85

killerdejavu opened this issue Feb 17, 2017 · 3 comments

Comments

@killerdejavu
Copy link

I have two files

styles1.less

@value lh: 1.5rem

styles2.less

@value lh from './styles1.less'

.heading {
  font-size: lh
}

The above setup doesnt work. Webpack doesnt evaluate anything. It comes as it is to the browser.

But if I use this

@value lh: 1.5rem

.heading {
  font-size: lh
}

The above works.

@rpunkfu
Copy link

rpunkfu commented Apr 5, 2017

What's your importLoaders value from webpack config?

@slavab89
Copy link

Experiencing the same actually...
Thats my webpack part:

{
      loader: 'css-loader',
      options: {
        localIndentName,
        sourceMap: true,
        modules: true,
        importLoaders: 1
      }
    },
    {
      loader: 'postcss-loader',
      options: {
        plugins: [
          postcssImport({ path: path.resolve(PATHS.app, './css') }),
          postcssCssnext({ browsers: ['> 1%', 'last 2 versions'] }),
          postcssReporter({ clearMessages: true })
        ]
      }
    }

Using https://github.com/reactGo/reactGo as a boilerplate

@killerdejavu
Copy link
Author

@rpunkfu Its 1

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

4 participants