38 lines
858 B
JavaScript
38 lines
858 B
JavaScript
let mix = require('laravel-mix');
|
|
let path = require('path');
|
|
|
|
mix.setResourceRoot('../');
|
|
mix.setPublicPath(path.resolve('./'));
|
|
|
|
mix.webpackConfig({
|
|
watchOptions: { ignored: [
|
|
path.posix.resolve(__dirname, './node_modules'),
|
|
path.posix.resolve(__dirname, './css'),
|
|
path.posix.resolve(__dirname, './js')
|
|
] }
|
|
});
|
|
|
|
mix.js('resources/js/app.js', 'js');
|
|
|
|
mix.postCss("resources/css/app.css", "css");
|
|
|
|
mix.postCss("resources/css/editor-style.css", "css");
|
|
|
|
mix.browserSync({
|
|
proxy: 'http://culturel.local',
|
|
host: 'culturel.local',
|
|
open: 'external',
|
|
port: 8000,
|
|
injectChanges: true,
|
|
files: [
|
|
'resources/**/*', // Fichiers CSS/JS
|
|
'**/*.php', // Fichiers PHP
|
|
],
|
|
});
|
|
|
|
if (mix.inProduction()) {
|
|
mix.version();
|
|
} else {
|
|
mix.options({ manifest: false });
|
|
}
|