1 Star 0 Fork 0

真伪/laravel_vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
真伪 提交于 2019-10-15 10:27 . 初始化
/**
* As our first step, we'll pull in the user's webpack.mix.js
* file. Based on what the user requests in that file,
* a generic config object will be constructed for us.
*/
let mix = require('../src/index');
//let mix = require('./node_modules/laravel-mix/src/index');
let ComponentFactory = require('../src/components/ComponentFactory');
//let ComponentFactory = require('./node_modules/laravel-mix/src/components/ComponentFactory');
new ComponentFactory().installAll();
require(Mix.paths.mix());
/**
* Just in case the user needs to hook into this point
* in the build process, we'll make an announcement.
*/
Mix.dispatch('init', Mix);
/**
* Now that we know which build tasks are required by the
* user, we can dynamically create a configuration object
* for Webpack. And that's all there is to it. Simple!
*/
let WebpackConfig = require('../src/builder/WebpackConfig');
//let WebpackConfig = require('./node_modules/laravel-mix/src/builder/WebpackConfig');
module.exports = new WebpackConfig().build();
/*新加的内容*/
// const vuxLoader = require('vux-loader');
// const webpackConfig = module.exports;
// module.exports = vuxLoader.merge(webpackConfig,{
// plugins:['vux-ui']
// });
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/meiguisgengshou/laravel_vue.git
git@gitee.com:meiguisgengshou/laravel_vue.git
meiguisgengshou
laravel_vue
laravel_vue
master

搜索帮助