加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.mix.js 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
雲溪 提交于 2017-06-27 14:25 . laravel-vue 基本版
const { mix } = require('laravel-mix');
const 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.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.js('resources/assets/js/home.js', 'public/js')
.sass('resources/assets/sass/home.scss', 'public/css')
// .version();
mix.webpackConfig({
resolve: {
alias: {
'components': 'assets/js/components',
'config': 'assets/js/config',
'lang': 'assets/js/lang',
'plugins': 'assets/js/plugins',
'vendor': 'assets/js/vendor',
'views': 'assets/js/views',
'dashboard': 'assets/js/views/dashboard',
},
modules: [
'node_modules',
path.resolve(__dirname, "resources")
]
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化