1 Star 5 Fork 3

贵州大师兄/laravel-shop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.mix.js 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
二师兄 提交于 2023-10-13 13:58 . 111
const mix = require('laravel-mix');
if (mix.inProduction()) {
mix.version();
mix.webpackConfig({
resolve: {
alias: {
'vue-router$': 'vue-router/dist/vue-router.common.js'
}
},
// output: {
// publicPath: '/',
// filename: '[name].[chunkhash:10].js',
// chunkFilename : '[name].[chunkhash:10].js'
// }
});
}
mix.disableNotifications();
mix.options({
processCssUrls: false
});
/*
|--------------------------------------------------------------------------
| 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/js/vue.js', 'public/lib/vue/vue-chunk.js');
// mix.js('resources/js/common.js', 'public/dist/common');
//h5
// mix.js('resources/apps/h5/index.js', 'public/dist/h5');
//后台
mix.js('resources/apps/admin/app.js', 'public/dist/admin').vue();
//sass
// mix.sass('resources/sass/bootstrap.scss', 'public/lib/bootstrap/bootstrap.min.css');
// mix.sass('resources/sass/element-ui.scss', 'public/lib/element');
mix.sass('resources/sass/admin/index.scss', 'public/dist/admin');
mix.sass('resources/sass/web/index.scss', 'public/dist/web');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/gzdsx/laravel-shop.git
git@gitee.com:gzdsx/laravel-shop.git
gzdsx
laravel-shop
laravel-shop
master

搜索帮助