加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.mix.js 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
xuebinji 提交于 2020-05-30 02:47 . modify
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss')
/*
|--------------------------------------------------------------------------
| 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.
|
*/
// home 模块
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.copyDirectory('resources/images', 'public/images')
.version();
// admin 模块
mix.js('resources/js/admin.js', 'public/js')
.sass('resources/sass/admin.scss', 'public/css')
.version();
// mix.sass('resources/sass/github.scss', 'public/css')
// .options({
// processCssUrls: false,
// postCss: [ tailwindcss('tailwind.config.js') ],
// })
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化