编译app.js laravel

时间:2017-06-01 16:43:26

标签: laravel laravel-5 laravel-5.4

我对laravel 5.4有疑问我试图放置一个个人js库但我没有得到它

我也无法删除vue.js

我认为这是薰衣草混合物的编制

我的档案

的package.json



{
  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "axios": "^0.15.3",
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^3.2.3",
    "jquery": "^3.1.1",
    "laravel-mix": "0.*",
    "lodash": "^4.17.4"
  }
}




入资产价值/ JS / app.js



 require('./bootstrap');




webpack.mix.js



const { mix } = require('laravel-mix');



 mix.js('resources/assets/js/app.js', 'public/js')
 .sass('resources/assets/sass/app.scss', 'public/css');
 .js('resources/assets/js/cidades-estados-1-4.js', 'public/js');




我尝试了npm更新然后npm运行dev或prod但它没有更新,它仍然是我删除的vue.js

我的app.js是巨人

0 个答案:

没有答案