This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/webpack.mix.js

24 lines
617 B
JavaScript
Raw Normal View History

2018-02-13 18:27:31 +00:00
let mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
mix.disableNotifications()
.less('assets/less/main.less', 'source/assets/css')
.styles([
'node_modules/font-awesome/css/font-awesome.css',
'node_modules/highlightjs/styles/github-gist.css'
], 'source/assets/css/vendor.css')
.copy('node_modules/font-awesome/fonts/*', 'source/assets/fonts')
.copyDirectory('assets/images', 'source/assets/images')
.options({
postCss: [
tailwindcss('./tailwind.js'),
]
});
if (!mix.inProduction()) {
mix.webpackConfig({
devtool: 'source-map'
})
.sourceMaps();
}