MCPcopy
hub / github.com/nhn/tui.editor / addCopyPluginForThemeCss

Function addCopyPluginForThemeCss

apps/editor/webpack.config.js:37–47  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

35}
36
37function 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
49function addMinifyPlugin(config) {
50 config.optimization = {

Callers 2

setProductionConfigFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected