当我运行下面给出的命令时,表示文件已成功编译,但我在给定目录中找不到它们。我甚至搜索了整个项目,但它不存在。任何人都可以找出问题或可能出现的问题。
命令: npm run mix
webpack.mix.js:
const { mix } = require('laravel-mix');
const {MIX_PACKAGE} = require('laravel-multimix');
//configs
mix.options({ processCssUrls: false });
mix.setPublicPath('/');
mix.disableNotifications();
// load site-specific config
if (MIX_PACKAGE && MIX_PACKAGE !== 'app')
{
require(`./resources/views/themes/${MIX_PACKAGE}/webpack.mix.${MIX_PACKAGE}.js`);
}
/*
|--------------------------------------------------------------------------
| 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 your application, as well as bundling up your JS files.
|
*/
// load app package (default)
if (MIX_PACKAGE === 'app')
{
mix.combine([
"resources/assets/css/common.css",
"resources/assets/css/pv-font.css",
"resources/assets/css/pmb.css",
"resources/assets/css/vamp.css",
"resources/assets/css/powered.css",
"resources/assets/css/prod_iframe.css"
], 'public/css/libs/lib.css');
mix.js([
'resources/assets/js/jquery.validate.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
//'bootstrap-3.0.3.min.js',
'node_modules/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js',
'node_modules/isotope-layout/dist/isotope.pkgd.min.js',
'node_modules/masonry-layout/dist/masonry.pkgd.min.js',
'resources/assets/js/jquery.masonry.min.js',
'resources/assets/js/nanoscroller.js',
'resources/assets/js/fancybox.js',
'resources/assets/js/handlebars-v4.0.5.js',
'resources/assets/js/carouselEnhancement.js',
'resources/assets/js/common.js',
// 'editor.js',
], 'public/js/libs/lib.js');
mix.js([
'resources/assets/js/editor.js',
], 'public/js/libs/editor.js');
mix.js([
'resources/assets/js/ecommerce/validator.js',
'resources/assets/js/ecommerce/marked.js',
'resources/assets/js/ecommerce/add-on/dependencies.js',
'resources/assets/js/ecommerce/ui-bootstrap-custom-tpls-2.5.0.min.js',
'resources/assets/js/ecommerce/add-on/add-on.js',
'resources/assets/js/ecommerce/user-address/directive.js',
'resources/assets/js/ecommerce/ng-pagevamp-ui.dev.latest.js',
], 'public/js/libs/ecommerce.js');
}
package.json:
{
"private": true,
"scripts": {
"webpack": "cross-env NODE_ENV=development webpack --progress --hide-modules",
"dev": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules",
"hmr": "cross-env NODE_ENV=development webpack-dev-server --inline --hot",
"production": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"mix": "node node_modules/laravel-multimix/bin/mix"
},
"devDependencies": {
"axios": "^0.15.2",
"bootstrap-sass": "^3.3.7",
"cross-env": "^5.0.1",
"jquery": "^3.1.0",
"laravel-mix": "^0.10.0",
"lodash": "^4.16.2",
"vue": "^2.0.1",
"vue-resource": "^1.0.3",
"webpack": "^2.2.0"
},
"dependencies": {
"angular": "^1.5.9",
"bootstrap": "3",
"bootstrap-hover-dropdown": "^2.2.1",
"install": "^0.8.2",
"isotope-layout": "^3.0.1",
"jquery": "^3.1.1",
"masonry-layout": "^4.1.1",
"mobile-detect": "^1.3.5",
"nanoscroller": "github:jamesflorentino/nanoScrollerJS"
},
"name": "themeBuilder",
"description": "## Why?????",
"version": "1.0.0",
"main": "gulpfile.js",
"directories": {
"test": "tests"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pagevamp/theme-builder.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/pagevamp/theme-builder/issues"
},
"homepage": "https://github.com/pagevamp/theme-builder#readme"
}
注意:我也在使用laravel-multimix包