Skip to content

Commit

Permalink
Fixes #283
Browse files Browse the repository at this point in the history
  • Loading branch information
krisk committed Feb 8, 2019
1 parent f5ec8a2 commit 96073ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"main": "dist/fuse.js",
"scripts": {
"test": "vows test/**.js",
"build": "webpack --mode development && webpack --mode production --minify",
"build": "webpack --mode development && webpack --mode production",
"dev": "webpack --mode development --progress --colors --watch"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const HOMEPAGE = pckg.homepage
let copyright = fs.readFileSync('COPYRIGHT.txt', 'UTF8')

module.exports = (env, argv) => {
const isMin = !!argv.minify
const isProd = argv.mode === 'production'

let plugins = []
if (isMin) {
if (isProd) {
plugins.push(new MinifyPlugin())
}
plugins = [
Expand All @@ -33,7 +33,7 @@ module.exports = (env, argv) => {
entry: path.resolve(__dirname, 'src/index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: `${LIBRARY_NAME}${isMin ? '.min' : ''}.js`,
filename: `${LIBRARY_NAME}${isProd ? '.min' : ''}.js`,
library: 'Fuse',
libraryTarget: 'umd',
umdNamedDefine: true,
Expand Down

0 comments on commit 96073ba

Please sign in to comment.