I have put gallery.less
and calendar.css
in web\mage\gallery
and web\mage
respectively in my custom theme, But they are not compile with grunt
.
How can i compile these files with grunt like other modules and web\css\source
less files ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityplease follow below step to compile "gallery.less"
open "root/dev/tools/grunt/configs/theme.js" and put below code in it (configure your theme in "theme.js")
theme: {
area: 'frontend',
name: 'vendor/your-theme',
locale: 'en_US',
files: [
'css/styles-m',
'css/styles-l',
'mage/gallery/gallery',
],
dsl: 'less'
}
please follow below step to compile "calendar.css"
**
theme: {
area: 'frontend',
name: 'vendor/your-theme',
locale: 'en_US',
files: [
'css/styles-m',
'css/styles-l',
'mage/gallery/gallery',
'mage/calendar',
],
dsl: 'less'
}
**