1 Star 0 Fork 18

stamina/innocms

forked from InnoCMS/innocms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.mix.js 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
InnoOne 提交于 2024-06-28 17:04 . fixed roles
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
// front
// If you wish to modify the template's SCSS or JS, please change 'theme' to the directory where your current theme is located.
const theme = '';
if (theme === '') {
mix.sass('innopacks/front/resources/css/bootstrap/bootstrap.scss', 'public/themes/default/css/bootstrap.css');
mix.sass('innopacks/front/resources/css/app.scss', 'public/themes/default/css/app.css');
mix.js('innopacks/front/resources/js/app.js', 'public/themes/default/js/app.js');
} else {
mix.sass('themes/' + theme + '/css/bootstrap/bootstrap.scss', 'public/themes/' + theme + '/css/bootstrap.css');
mix.sass('themes/' + theme + '/css/app.scss', 'public/themes/' + theme + '/css/app.css');
mix.js('themes/' + theme + '/js/app.js', 'public/themes/' + theme + '/js/app.js');
}
// panel
mix.sass('innopacks/panel/resources/css/bootstrap/bootstrap.scss', 'public/build/panel/css/bootstrap.css');
mix.sass('innopacks/panel/resources/css/app.scss', 'public/build/panel/css/app.css');
mix.js('innopacks/panel/resources/js/app.js', 'public/build/panel/js/app.js');
// install
mix.sass('innopacks/install/resources/css/app.scss', 'public/build/install/css/app.css');
if (mix.inProduction()) {
mix.version();
}
mix.options({
terser: {
extractComments: false,
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stam1na/innocms.git
[email protected]:stam1na/innocms.git
stam1na
innocms
innocms
master

搜索帮助