From 991052c97e2cd4d9dc6fb277c4621a0151baeac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=EC=9A=B0?= Date: Mon, 9 Jul 2018 18:01:11 +0900 Subject: [PATCH] fixed webpack config for css minifiled --- webpack.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 1b078064f..b660bd16a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,9 +10,9 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin'); const isProduction = process.argv.indexOf('-p') > -1; -const FILENAME = pkg.name + (isProduction ? '.min.js' : '.js'); +const FILENAME = pkg.name + (isProduction ? '.min' : ''); const BANNER = [ - FILENAME, + `${FILENAME}.js`, `@version ${pkg.version}`, `@author ${pkg.author}`, `@license ${pkg.license}` @@ -28,7 +28,7 @@ module.exports = { libraryTarget: 'umd', path: 'dist', publicPath: 'dist', - filename: FILENAME + filename: `${FILENAME}.js` }, externals: { 'tui-code-snippet': { @@ -67,7 +67,7 @@ module.exports = { }, plugins: [ new webpack.BannerPlugin(BANNER), - new ExtractTextPlugin('tui-image-editor.css'), + new ExtractTextPlugin(`${FILENAME}.css`), new SafeUmdPlugin() ], devServer: {