forked from ddlibrary/ddlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
53 lines (45 loc) · 1.48 KB
/
webpack.mix.js
File metadata and controls
53 lines (45 loc) · 1.48 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| 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.styles([
'resources/assets/css/reset.css',
'resources/assets/css/common.css',
'resources/assets/css/ddl.css',
'resources/assets/css/survey.css',
'resources/assets/css/fontawesome-all.min.css',
], 'public/css/all.css');
mix.styles('resources/assets/css/local.css', 'public/css/local.css');
mix.babel([
'resources/assets/js/ddl.js',
'resources/assets/js/lazysizes.min.js',
'resources/assets/js/boostrap.min.js',
], 'public/js/all.js');
/*
const ImageminPlugin = require('imagemin-webpack-plugin').default;
const CopyWebpackPlugin = require('copy-webpack-plugin');
const imageminMozjpeg = require('imagemin-mozjpeg');
mix.webpackConfig({
plugins: [
new CopyWebpackPlugin([{
from: 'public/storage/files',
to: 'storage/files', // Laravel mix will place this in 'public/img'
}]),
new ImageminPlugin({
test: /\.(jpe?g|png|gif|svg)$/i,
plugins: [
imageminMozjpeg({
quality: 50,
})
]
})
]
});
*/