📜  laravel mix build as umd - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:37.875000             🧑  作者: Mango

代码示例1
mix.js('src/main.js', 'dist/libraryName.js')

mix.webpackConfig({
  output: {
    library: 'libraryName',
    libraryTarget: 'umd',
    umdNamedDefine: true
  }
})