You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dick/webpack.mix.js

7 lines
372 B

3 years ago
const mix = require('laravel-mix')
// I'm using laravel-mix to copy all the images, and js to the public folder then transpile the EJSmodules in src/public/modules/app.js
mix.setPublicPath('dist/public')
.copyDirectory("src/public/js", "dist/public/js")
.copyDirectory("src/public/images", "dist/public/images")
.js('src/public/modules/app.js', 'dist/public/js')