Commit 94112530 authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил команду сборки без SM

parent e622ccdf
......@@ -8,7 +8,7 @@
`port=3004 npm start` — для запуска сервера автообновлений на указанном порту.
`NODE_ENV=production npm start [задача]` — для запуска задач без создания sourcemaps.
`npm run build` — сборка проекта «для продакшена» (без кар кода).
......
......@@ -79,7 +79,7 @@ gulp.task('less', function () {
.pipe(gulpIf(!isDev, cleanss()))
.pipe(rename('style.min.css'))
.pipe(debug({title: "RENAME:"}))
.pipe(gulpIf(isDev, sourcemaps.write()))
.pipe(gulpIf(isDev, sourcemaps.write('/')))
.pipe(size({
title: 'Размер',
showFiles: true,
......
......@@ -6,6 +6,7 @@
"test": "node_modules/.bin/stylelint ./src/**/*.less",
"start": "./node_modules/.bin/gulp",
"deploy": "cross-env NODE_ENV=production ./node_modules/.bin/gulp build && cross-env ./node_modules/.bin/gulp deploy",
"build": "cross-env NODE_ENV=production npm start build",
"precommit": "npm test"
},
"author": "Nikolay Gromov",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment