1 Star 0 Fork 2

Jason / Adoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webpack.mix.js 890 Bytes
一键复制 编辑 原始数据 按行查看 历史
yybawang 提交于 2019-07-20 11:03 . :tada:js文件压缩
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| 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.react('resources/js/app.js', 'js')
.sass('resources/sass/app.scss', 'css')
// .extract(['collect.js', 'axios', 'react', 'react-dom', 'react-router-dom', 'diff', 'diff2html', 'history', 'rc-cascader', 'react-bootstrap', 'cogo-toast'])
;
mix.disableNotifications();
// mix.browserSync({
// proxy: 'adoc.test',
// open: false
// });
mix.options.publicPath = 'dist/';
mix.setPublicPath('public/dist').setResourceRoot('/dist/');
HTML
1
https://gitee.com/JasonMetal/Adoc.git
git@gitee.com:JasonMetal/Adoc.git
JasonMetal
Adoc
Adoc
master

搜索帮助