Created
December 19, 2017 18:00
-
-
Save victorhugorch/798b3dbd560e7cb0c110b30c7f3d0958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
let webpack = require('webpack'); | |
/* | |
|-------------------------------------------------------------------------- | |
| 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');*/ | |
/*mix.copy('node_modules/font-awesome/fonts','public/fonts') | |
.copy('node_modules/font-awesome/css/font-awesome.min.css','public/css/font-awesome.min.css'); | |
mix.copy('node_modules/jquery/dist/jquery.min.js','public/js/jquery.min.js');*/ | |
/*mix.copy('node_modules/font-awesome/fonts','public/fonts') | |
.copy('node_modules/bootstrap/dist/fonts','public/fonts'); | |
mix.styles([ | |
'node_modules/font-awesome/css/font-awesome.min.css', | |
'node_modules/bootstrap/dist/css/bootstrap.min.css', | |
'resources/assets/css/app.css', | |
'resources/assets/css/header.css', | |
'resources/assets/css/footer.css', | |
],'public/css/style.css'); | |
mix.scripts([ | |
'node_modules/jquery/dist/jquery.min.js', | |
'node_modules/bootstrap/dist/js/bootstrap.min.js', | |
'resources/assets/js/app.js' | |
],'public/js/scripts.js');*/ | |
/*mix.scripts([ | |
'node_modules/jquery/dist/jquery.min.js', | |
'node_modules/bootstrap/dist/js/bootstrap.min.js', | |
'resources/assets/js/app.js', | |
],'public/js/scripts.js'); | |
mix.copy('resources/assets/js/blog.js','public/js/blog.js'); | |
mix.copy('resources/assets/js/admin.js','public/js/admin.js'); | |
mix.sass('resources/assets/sass/app.scss','public/css'); | |
//mix.less('resources/assets/less/app.less','public/css');*/ | |
mix.webpackConfig({ | |
plugins: [ | |
new webpack.ProvidePlugin({ | |
$: "jquery", | |
jQuery: "jquery" | |
}) | |
] | |
}); | |
mix.js('resources/assets/js/admin.js','public/js') | |
.js('resources/assets/js/blog.js','public/js') | |
.sourceMaps() | |
.extract(['jquery','bootstrap']); | |
mix.sass('resources/assets/sass/app.scss','public/css'); | |
mix.browserSync('localhost:8000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment