forked from DirectoryLister/DirectoryLister
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
31 lines (22 loc) · 867 Bytes
/
webpack.mix.js
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
let mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
mix.setPublicPath('app/assets');
mix.webpackConfig({
watchOptions: { ignored: ['node_modules', 'app/vendor'] }
});
mix.sass('app/resources/sass/app.scss', 'app/assets/app.css').options({
processCssUrls: false,
postCss: [tailwindcss('tailwind.config.js')]
});
mix.js('app/resources/js/app.js', 'app/assets/app.js');
mix.copyDirectory('app/resources/images', 'app/assets/images');
mix.copy('node_modules/highlight.js/styles/github.css', 'app/assets/hljs-github.css');
mix.copy('node_modules/highlight.js/styles/github-dark.css', 'app/assets/hljs-github-dark-dimmed.css');
mix.copy(
'node_modules/@fortawesome/fontawesome-free/webfonts/fa-{brands,solid}-*',
'app/assets/webfonts'
);
if (mix.inProduction()) {
mix.version();
}
mix.disableSuccessNotifications();