const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader'
]
}
]
},
plugins: [
new MiniCssExtractPlugin({
filename: 'style.css'
})
]
}
"build: "react-scripts build",
нет ковычек после build"homepage": "https://github.com/Mahro21/m-vk-app.git/"
- отсутствует запятая в конце. function watch() {
browserSync.init({
server: {
baseDir: './app'
}
})
.pipe(watch(dir.src.css, css))
.pipe(watch(dir.src.js, js))
.pipe(watch(dir.src.php).on('change', browserSync.reload));
}
const gulp = require("gulp");
const { series, parallel, src, dest } = gulp;
// ...
function watch() {
browserSync.init({
server: {
baseDir: './app'
}
})
.pipe(gulp.watch(dir.src.css, css))
// ...
}
Math.floor(Math.random( ) * (data.length + 1))
илиMath.round(Math.random( ) * data.length)