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

Expansion not happening for @{img_path} #319

Open
roboweaver opened this issue Jul 14, 2016 · 0 comments
Open

Expansion not happening for @{img_path} #319

roboweaver opened this issue Jul 14, 2016 · 0 comments

Comments

@roboweaver
Copy link

roboweaver commented Jul 14, 2016

I have a less file that has a variable defined as:

@img_path: '/wp-content/themes/dragons/images/';

And a reference to that as:

background: #f06029 url("@{img_path}orange-atom-bg.jpg") no-repeat 50% 50%;

In the CSS output, I get

background:#f06029 url(@{img_path}cream_pixels.png) 50% 50%

What I'd expect is:

background:#f06029 url("/wp-content/themes/dragons/images/'cream_pixels.png") 50% 50%

I saw another thread about changing the variable to include the double quotes inside the single quotes, but that obviously wouldn't work in this case.

Am I missing a parameter for less?

less: {
    style: {
        options: {
            cleancss: true,
            report: "min"
        },
        expand: true,
        files: [
            {
                "style.min.css": "style.less"
            }, {
                "bootstrap.min.css": [
                    "node_modules/bootstrap/less/bootstrap.less",
                    "node_modules/bootstrap-toggle/css/bootstrap-toggle.min.css"
                ]
            }, {
                "parallax.min.css": "parallax.less"
            }, {
                "blog.min.css": "blog.less"
            }, {
                "leap.min.css": "leap.less"
            }, {
                "livechatinc.min.css": "less/livechatinc.less"
            }, {
                "style-careers.min.css": "style-careers.css"
            }
        ]
    }
},
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