代码拉取完成,页面将自动刷新
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');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。