forked from agence-adeliom/easy-media-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
executable file
·34 lines (29 loc) · 852 Bytes
/
webpack.mix.js
File metadata and controls
executable file
·34 lines (29 loc) · 852 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
33
34
// webpack.mix.js
const path = require('path');
let mix = require('laravel-mix');
let webpack = require('webpack');
let tailwindcss = require('tailwindcss');
require('laravel-mix-polyfill');
mix.setPublicPath("src/Resources/public");
mix.sass('assets/sass/manager.scss', 'style/style.css');
mix.js('assets/js/app.js', 'js').vue();
mix.copyDirectory('assets/dist', 'src/Resources/public/dist');
mix.polyfill();
mix.options({
postCss: [ tailwindcss('./tailwind.config.js') ],
})
mix.alias({
'@': path.resolve(__dirname, 'node_modules/'),
});
mix.webpackConfig({
output: {
publicPath: 'bundles/easymedia/',
},
plugins: [
// fix ReferenceError: Buffer/process is not defined
new webpack.ProvidePlugin({
process : 'process/browser',
Buffer : ['buffer', 'Buffer']
})
]
})