Add utilities to make dev easier
Signed-off-by: Kevin Ndung'u <kevgathuku@gmail.com>
This commit is contained in:
Родитель
f5602d1850
Коммит
bb176a1917
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"singleQuote": true,
|
||||
"tabWidth": 4,
|
||||
"useTabs": true
|
||||
}
|
7
Makefile
7
Makefile
|
@ -33,10 +33,13 @@ install-npm-deps:
|
|||
npm install --production
|
||||
|
||||
install-npm-deps-dev:
|
||||
npm install --deps
|
||||
npm install
|
||||
|
||||
optimize-js: install-npm-deps-dev
|
||||
./node_modules/webpack/bin/webpack.js --config js/webpack.prod.config.js
|
||||
npm run build
|
||||
|
||||
dev-js: install-npm-deps-dev
|
||||
npm run dev
|
||||
|
||||
dev-setup: install-composer-deps-dev install-npm-deps-dev optimize-js
|
||||
|
||||
|
|
|
@ -2,5 +2,6 @@ const merge = require('webpack-merge');
|
|||
const baseConfig = require('./webpack.base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
mode: 'development',
|
||||
devtool: 'inline-source-map'
|
||||
});
|
||||
|
|
|
@ -3,6 +3,7 @@ const merge = require('webpack-merge');
|
|||
const baseConfig = require('./webpack.base.config.js');
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
mode: 'production',
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
|
Загрузка…
Ссылка в новой задаче