ERROR in Entry module not found: Error: Can't resolve './src' in 'D:\path...'const webpack = require('webpack');
const path = require('path');
module.export = {
entry: "/src/main.js",
output: {
path: path.resolve(__dirname, "/public/build/"),
filename: "bundle.js",
},
module: {
rules: [
{
test: /\.js$/,
exclude: [ /node_modules/, /public/ ],
loader: 'babel-loader'
},
{
test: /\.jsx$/,
exclude: [ /node_modules/, /public/ ],
use: [ "babel-loader", 'react-hot-loader' ]
},
{
test: /\.scss$/,
exclude: [ /node_modules/, /public/ ],
use: [ 'style-loader', 'css-loader', 'sass-loader' ]
},
]
},
}
Project /src/main.js
Project /public/build/bundle.js
Project /public/build/index.html
Project /webpack.config.js
Запускаю
webpack --mode development --config webpack.config.js
Пишет ошибку что не может найти
.src + создает пустую папку
dist.