1 Star 0 Fork 24

gao510551995/thinksns-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.mix.js 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
let mix = require('laravel-mix')
let path = require('path')
/*
|--------------------------------------------------------------------------
| 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.setPublicPath(path.join('public', 'assets'))
mix.setResourceRoot('/assets/')
mix.sourceMaps(!mix.inProduction())
mix.disableNotifications()
if (mix.config.hmr === true) {
mix.setResourceRoot('/')
}
/*
|--------------------------------------------------------------------------
| Bootstrap SASS & jQuery bundle.
|--------------------------------------------------------------------------
|
| 包含 jQuery 和 Bootstrap 的捆包。
|
*/
mix.sass('resources/sass/bootstrap.scss', path.join('public', 'assets', 'css')).
js('resources/js/bootstrap.js', path.join('public', 'assets', 'js'))
/*
|--------------------------------------------------------------------------
| 后台可运行 js 捆
|--------------------------------------------------------------------------
|
| 不包含 jQuery 和 Bootstrap 的 vue 捆包。
|
*/
mix.js('resources/assets/admin', path.join('public', 'assets', 'js'))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/lovezy/thinksns-plus.git
git@gitee.com:lovezy/thinksns-plus.git
lovezy
thinksns-plus
thinksns-plus
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385