Skip to content

Commit

Permalink
Added copying files
Browse files Browse the repository at this point in the history
  • Loading branch information
dyuvzhenko committed Nov 13, 2017
1 parent 6904779 commit baa18e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"babel-preset-es2015": "^6.24.1",
"clean-webpack-plugin": "^0.1.17",
"concurrently": "^3.5.0",
"copy-webpack-plugin": "^4.2.0",
"jasmine-core": "^2.8.0",
"jshint": "^2.9.5",
"jshint-loader": "^0.8.4",
Expand Down
7 changes: 6 additions & 1 deletion webpack/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path');
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

const packageJSON = require('../package.json');

Expand Down Expand Up @@ -70,7 +71,11 @@ if (ENV === 'production') {
comments: false,
},
include: /\.min\.js$/
})
}),
new CopyWebpackPlugin([
{from: 'src/ui-scroll-jqlite.js', to: 'ui-scroll-jqlite.min.js'},
{from: 'src/ui-scroll-jqlite.js', to: 'ui-scroll-jqlite.js'}
], {copyUnmodified: true})
],

watch: false
Expand Down

0 comments on commit baa18e5

Please sign in to comment.