Skip to content

Instantly share code, notes, and snippets.

@tifidy
Created June 26, 2019 08:18
Show Gist options
  • Save tifidy/9de777c0ba93af5001e2dc952d9c5c26 to your computer and use it in GitHub Desktop.
Save tifidy/9de777c0ba93af5001e2dc952d9c5c26 to your computer and use it in GitHub Desktop.
Vuejs config
{
"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": "npm run development -- --watch",
"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 --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.18",
"cross-env": "^5.1",
"gulp": "^4.0.0",
"gulp-minify": "^3.1.0",
"jquery": "^3.2",
"laravel-mix": "^4.0.7",
"lodash": "^4.17.5",
"natives": "^1.1.6",
"resolve-url-loader": "^2.3.1",
"sass": "^1.15.2",
"sass-loader": "^7.1.0",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.10"
},
"dependencies": {
"acorn": "^6.1.1",
"popper.js": "^1.15.0",
"validator": "^10.11.0",
"vee-validate": "^2.2.5",
"vue-multiselect": "^2.1.6"
}
}
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.autoload({
'jquery': ['$', 'window.jQuery', "jQuery", "window.$", "jquery", "window.jquery"],
'popper.js': ['Popper', 'window.Popper']
});*/
mix.setPublicPath('../public')
.js('resources/vue/app.js', 'assets/compiled/js')
.sass('resources/bootstrap/scss/bootstrap.scss', 'assets/compiled/css')
.options({
processCssUrls: false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment