Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

1
vote
1answer
20 views

How to have the changes made in .less file be reflected on the website?

I'm trying to make some style changes to a .less file in a custom module. But even after making and saving the changes to the .less file, those changes are not being reflected on the website. I'm ...
0
votes
1answer
44 views

.less file not complied in .css file in magneto2

File Path In App Folder /app/design/frontend/Vendor/Theme/web/css/local-l.less File Path Must Be In Pub Folder /pub/static/frontend/Vendor/Theme/en_US/css/local-l.min.css But local-l.min....
0
votes
1answer
53 views

Unable to import custom less file in custom theme's modules in Magento2

I have created a custom theme in Magento 2 and I want to add _customvariables.less and _custommixins.less in all other less files. I have added these files in the following location. magento2/app/...
1
vote
2answers
58 views

Magento 2.1 - Deploy static view files without deleting pub/static

How can I deploy static view files over the CLI in Magento 2.1 WITHOUT deleting my complete pub/static/* dir. Our Shop runs in an auto scaling enviroment. Everytime when we want to deploy new style ...
0
votes
2answers
96 views

Magento 2.2: How to apply breakpoints in custom .less files

Magento 2.2.3 Ubuntu 16.04 Server VM using VirtualBox with icewm window manager Apache 2.4 MySQL 14.14 PHP 7.0 Custom theme which inherits from Magento/blank I have a custom .phtml file: Vendor/...
0
votes
0answers
22 views

Configuration of the Grunt Less compiler

Is it possible in Magento2 to modify the Grunt configuration for the Less compiler, and if so, how should it be done ? More specifically, I'd like to activate the strictMath mode (as described in ...
1
vote
1answer
51 views

Magento2 Keeping CSS changes after redeployment [duplicate]

Hi I am new to Magento 2, I was wondering what methods people are using to keep CSS changes after they deploy static content as CSS changes are overwritten every time. Thanks!
0
votes
0answers
15 views

Compilation not load my javascript

I have updated Magento2 to version 2.2.3. It works fine but, unlike the previous version, the compilation does not consider the theme.js file of my template. My file is in app/design/frontend/...
0
votes
2answers
374 views

Error when running grunt exec

I have followed the docs for setting up Less compilation. Running grunt clean and grunt less works without errors, but when I run grunt exec (with or without appending a specific theme name) I get the ...
0
votes
1answer
177 views

Error after changing to less compilation in admin

I am pretty new to magento. After I change to client-side less compilation. I get the following. 1 exception(s): Exception #0 (Exception): Notice: Undefined variable: template in /var/www/html/...
0
votes
0answers
558 views

After update (version 2.2) problem when compiling

After update (version 2.2) problem when compiling n The situation: OS: Debian 8.9 PHP: 7.0.26 MySQL: 5.7.16 Apache: 2.4.23 Update of Magento 2.1.9 to 2.2.0 and 2.2.2 Load the backend without any ...
1
vote
2answers
35 views

Execute less after changes [duplicate]

I am pretty new to Magento2 and my question may sound banana to most of you. I would like to know how can I compile my less file. app/design/frontend/my_theme/web/css/source/_layout.less thank ...
3
votes
2answers
940 views

Magento 2.2 LESS not compiling locally on Ubuntu

I'm using Ubuntu with Magento 2.2 installed locally for development. I'm updating my LESS, but it's just not compiling for some reason. I have all caching turned off in Cache Management, and I run ...
0
votes
1answer
35 views

magento 2 enterprice client side less compilation

When i change server side less compilation on client side, i have 404 with all my less files.
0
votes
1answer
73 views

Cannot override _forms.less

Ive tried to override the _forms.less file in my theme but its only extending the original _forms.less. My file is placed under app/design/frontend/Vendor/Theme/web/css/source/_forms.less. I am ...
7
votes
3answers
513 views

How does Magento 2 work with CSS grunt-autoprefixer

From looking at a fresh install of Magento 2 (v2.1.8) I see from their Gruntfile.js and package.json files that Magento is using grunt-autoprefixer This is great, CSS autoprefixers are really useful. ...