Skip to content

Commit

Permalink
fixed webpack config for css minifiled
Browse files Browse the repository at this point in the history
  • Loading branch information
jinwoo-kim-nhn committed Jul 9, 2018
1 parent d01a382 commit 991052c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand All @@ -28,7 +28,7 @@ module.exports = {
libraryTarget: 'umd',
path: 'dist',
publicPath: 'dist',
filename: FILENAME
filename: `${FILENAME}.js`
},
externals: {
'tui-code-snippet': {
Expand Down Expand Up @@ -67,7 +67,7 @@ module.exports = {
},
plugins: [
new webpack.BannerPlugin(BANNER),
new ExtractTextPlugin('tui-image-editor.css'),
new ExtractTextPlugin(`${FILENAME}.css`),
new SafeUmdPlugin()
],
devServer: {
Expand Down

0 comments on commit 991052c

Please sign in to comment.