(config)
| 35 | } |
| 36 | |
| 37 | function addCopyPluginForThemeCss(config) { |
| 38 | const options = minify |
| 39 | ? { |
| 40 | patterns: [{ from: './src/css/theme/*.css', to: './theme/toastui-editor-[name].min.css' }], |
| 41 | } |
| 42 | : { |
| 43 | patterns: [{ from: './src/css/theme/*.css', to: './theme/toastui-editor-[name].css' }], |
| 44 | }; |
| 45 | |
| 46 | config.plugins.push(new CopyPlugin(options)); |
| 47 | } |
| 48 | |
| 49 | function addMinifyPlugin(config) { |
| 50 | config.optimization = { |
no test coverage detected