加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.mix.js 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
marco 提交于 2020-12-24 17:49 . Removed. unsed. files
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest');
/*
|--------------------------------------------------------------------------
| Mix Asset Fo development 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.
|
*/
if (mix.config.production || mix.config.development) {
mix.sass('resources/sass/website/vendor.scss', 'public/website/css')
mix.js('resources/js/website/vendor.js', 'public/website/js')
mix.sass('resources/sass/admin/vendor.scss', 'public/cms/css/')
mix.js('resources/js/admin/cmsvendor.js', 'public/cms/js/cmsvendor.js')
mix.version();
} else {
//mix.config.processCssUrls = false;
}
/*
|--------------------------------------------------------------------------
| Website
|--------------------------------------------------------------------------
*/
mix.sass('resources/sass/website/app.scss', 'public/website/css')
mix.js('resources/js/website/app.js', 'public/website/js')
mix.js('resources/js/website/cart.js', 'public/website/js');
/*
|--------------------------------------------------------------------------
| Admin
|--------------------------------------------------------------------------
*/
mix.sass('resources/sass/admin/app.scss', 'public/cms/css/')
mix.js('resources/js/admin/cms.js', 'public/cms/js/cms.js')
mix.js('resources/js/admin/header.js', 'public/cms/js/header.js')
mix.js('resources/js/admin/lara-file-manager.js', 'public/cms/js')
mix.js('resources/js/admin/appcms.js', 'public/cms/js/');
mix.mergeManifest();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化