-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
32 lines (25 loc) · 722 Bytes
/
webpack.mix.js
File metadata and controls
32 lines (25 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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://tailpress.test',
// host: 'tailpress.test',
// open: 'external',
// port: 8000
// });
if (mix.inProduction()) {
mix.version();
} else {
Mix.manifest.refresh = _ => void 0
}