Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Add hard-source-webpack-plugin #956

Merged
merged 2 commits into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ node('lisk-nano') {
cp -r ~/cache/development/node_modules ./ || true
npm install
./node_modules/protractor/bin/webdriver-manager update
# cache nightly builds (development) only to save space
if [ $BRANCH_NAME = "development" ]; then
rsync -axl --delete $WORKSPACE/node_modules/ ~/cache/development/node_modules/ || true
fi
'''
} catch (err) {
echo "Error: ${err}"
Expand Down Expand Up @@ -143,6 +139,11 @@ node('lisk-nano') {
( cd ~/lisk-Linux-x86_64 && bash lisk.sh stop_node -p etc/pm2-lisk_$N.json ) || true
pgrep --list-full -f "Xvfb :1$N" || true
pkill --echo -f "Xvfb :1$N" -9 || echo "pkill returned code $?"

# cache nightly builds (development) only to save space
if [ $BRANCH_NAME = "development" ]; then
rsync -axl --delete $WORKSPACE/node_modules/ ~/cache/development/node_modules/ || true
fi
'''
dir('node_modules') {
deleteDir()
Expand Down
2 changes: 2 additions & 0 deletions config/webpack.config.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { resolve } = require('path');
const webpack = require('webpack');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
/* eslint-enable import/no-extraneous-dependencies */

const entries = {
Expand Down Expand Up @@ -37,5 +38,6 @@ module.exports = {
filename: 'styles.css',
allChunks: true,
}),
new HardSourceWebpackPlugin(),
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"copy-to-clipboard": "3.0.8",
"electron-localshortcut": "^2.0.2",
"flexboxgrid": "=6.3.1",
"hard-source-webpack-plugin": "0.4.11",
"history": "=4.7.2",
"i18next": "=10.0.3",
"i18next-localstorage-cache": "=1.1.1",
Expand Down