-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
executable file
·44 lines (39 loc) · 1.28 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
const mix = require('laravel-mix');
// require('laravel-mix-sri');
mix.webpackConfig({
resolve: {
alias: {
//vue: 'vue/dist/vue.js'
},
fallback: {
"crypto": require.resolve("crypto-browserify"),
// "stream": false,
"stream": require.resolve("stream-browserify"),
"constants": require.resolve("constants-browserify")
}
},
experiments: {
syncWebAssembly: true,
asyncWebAssembly: true,
},
});
// mix.extend('i18n', new class {
// webpackRules() {
// return [
// {
// resourceQuery: /blockType=i18n/,
// type: 'javascript/auto',
// loader: '@kazupon/vue-i18n-loader',
// },
// ];
// }
// }(),
// );
mix//.i18n()
.js('resources/js/app.js', 'public/js').vue({version: 2})
.sass('resources/sass/app.scss', 'public/css');
// .generateIntegrityHash();
mix.copyDirectory('resources/js/github/vuesocial/assets/networks', 'public/vuesocial');
mix.copyDirectory('resources/assets', 'public/assets');
mix.copy('node_modules/bootstrap/dist/js/bootstrap.bundle.min.js', 'public/js');
mix.copy('node_modules/jquery/dist/jquery.min.js', 'public/js');