Answers for "laravel mix build as umd"

PHP
0

laravel mix build as umd

mix.js('src/main.js', 'dist/libraryName.js')

mix.webpackConfig({
  output: {
    library: 'libraryName',
    libraryTarget: 'umd',
    umdNamedDefine: true
  }
})
Posted by: Guest on September-16-2020

Browse Popular Code Answers by Language