Last active
November 26, 2020 06:49
-
-
Save almino/969122bbaf56100ab7f06d641b925180 to your computer and use it in GitHub Desktop.
Semantic UI & Laravel Mix using less files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources/assets/less/app.less | |
@semantic: '../semantic/src/'; | |
@definitions: '@{semantic}definitions/'; | |
& { | |
@import '@{definitions}globals/reset.less'; | |
} | |
& { | |
@import '@{definitions}globals/site.less'; | |
} | |
/* | |
* Optional imports | |
*/ | |
& { | |
@import '@{definitions}elements/icon.less'; | |
} | |
& { | |
@import '@{definitions}modules/dimmer.less'; | |
} | |
& { | |
@import '@{definitions}elements/loader.less'; | |
} | |
& { | |
@import '@{definitions}collections/grid.less'; | |
} | |
& { | |
@import '@{definitions}elements/segment.less'; | |
} | |
& { | |
@import '@{definitions}elements/image.less'; | |
} | |
& { | |
@import '@{definitions}elements/header.less'; | |
} | |
& { | |
@import '@{definitions}collections/form.less'; | |
} | |
& { | |
@import '@{definitions}modules/checkbox.less'; | |
} | |
& { | |
@import '@{definitions}elements/button.less'; | |
} | |
& { | |
@import '@{definitions}collections/message.less'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources/assets/semantic/src/site/globals/site.variables | |
/******************************* | |
User Global Variables | |
*******************************/ | |
/******************************* | |
Webpack can't | |
find font files | |
*******************************/ | |
// https://github.com/Semantic-Org/Semantic-UI/issues/3533#issuecomment-188253175 | |
@fontPath : '../assets/fonts'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for the application as well as bundling up all the JS files. | |
| | |
*/ | |
mix.js('resources/assets/js/app.js', 'public/js') | |
// .sass('resources/assets/sass/app.scss', 'public/css') | |
.less('resources/assets/less/app.less', 'public/css').sourceMaps(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment