add webpack, webpack-rails, and webpack-dev-server along with a simple hello world test
Add the following line to GDK Procfile to play with it: webpack: exec support/exec-cd gitlab npm run dev-server
Showing
... | @@ -214,6 +214,8 @@ gem 'oj', '~> 2.17.4' | ... | @@ -214,6 +214,8 @@ gem 'oj', '~> 2.17.4' |
gem 'chronic', '~> 0.10.2' | gem 'chronic', '~> 0.10.2' | ||
gem 'chronic_duration', '~> 0.10.6' | gem 'chronic_duration', '~> 0.10.6' | ||
gem 'webpack-rails', '~> 0.9.9' | |||
gem 'sass-rails', '~> 5.0.6' | gem 'sass-rails', '~> 5.0.6' | ||
gem 'coffee-rails', '~> 4.1.0' | gem 'coffee-rails', '~> 4.1.0' | ||
gem 'uglifier', '~> 2.7.2' | gem 'uglifier', '~> 2.7.2' | ||
... | ... |
config/webpack.config.js
0 → 100644
{ | { | ||
"private": true, | "private": true, | ||
"scripts": { | "scripts": { | ||
"dev-server": "node_modules/.bin/webpack-dev-server --config config/webpack.config.js", | |||
"eslint": "eslint --max-warnings 0 --ext .js,.js.es6 .", | "eslint": "eslint --max-warnings 0 --ext .js,.js.es6 .", | ||
"eslint-fix": "npm run eslint -- --fix", | "eslint-fix": "npm run eslint -- --fix", | ||
"eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html" | "eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html" | ||
}, | }, | ||
"dependencies": { | |||
"stats-webpack-plugin": "^0.4.2", | |||
"webpack": "^1.13.2", | |||
"webpack-dev-server": "^1.16.2" | |||
}, | |||
"devDependencies": { | "devDependencies": { | ||
"eslint": "^3.10.1", | "eslint": "^3.10.1", | ||
"eslint-config-airbnb-base": "^10.0.1", | "eslint-config-airbnb-base": "^10.0.1", | ||
... | ... |
Please register or sign in to comment