Last active
March 25, 2022 02:49
-
-
Save autorunman22/4d347acf59e2036dfd552872c8c097e3 to your computer and use it in GitHub Desktop.
Laravel common mix setup for vue.js + pug.js
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
const mix = require('laravel-mix'); | |
mix.webpackConfig({ | |
module: { | |
rules: [ | |
{ | |
test: /\.pug$/, | |
loader: 'pug-plain-loader' | |
} | |
] | |
} | |
}); | |
mix.browserSync('http://localhost:8000/'); | |
mix.js('resources/js/app.js', 'public/js') | |
.vue() | |
// .sass('resources/sass/app.scss', 'public/css') | |
.postCss('resources/css/app.css', 'public/css', [ | |
require('tailwindcss'), | |
]); |
tsconfig.js
module.exports = {
resolve: {
alias: {
'@': 'src'
}
}
}
stylelint.config.js
module.exports = {
extends: ["stylelint-config-standard"],
rules: {
"at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"tailwind",
"apply",
"variants",
"responsive",
"screen",
],
},
],
"declaration-block-trailing-semicolon": null,
"no-descending-specificity": null,
},
};
install wsl plugin -__-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm install -D pug pug-plain-loader
tailwind.config.js