Э
Size: a a a
Э
A
ln -s "./node_modules/@hookform" "./node_modules/mirror-hookform"
A
Э
ln -s "./node_modules/@hookform" "./node_modules/mirror-hookform"
A
A
SE
A
SE
entry: './index.js',
mode: 'development',
output: {
path: __dirname + "/build",
publicPath: '/',
filename: "bundle.js"
},
A
A
KS
SE
A
SE
const HTMLWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const sass = require('sass')
const polyfill = require('babel-polyfill')
module.exports = {
entry: './index.js',
mode: 'development',
output: {
path: __dirname + "/build",
publicPath: '/',
filename: "bundle.js"
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node-modules/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.(css|scss)$/,
use: [
'style-loader',
'css-loader',
'sass-loader'
]
},
{
test: /\.(png|svg|jpg|gif)$/,
use: ['file-loader']
}
]
},
devServer: {
historyApiFallback: true
},
plugins: [new HTMLWebpackPlugin({
template: ['build/', 'index.html'].join(''),
minify: {
collapseWhitespace: true,
removeAttributeQuotes: true
}
})]
}
SE
SE
y
const HTMLWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const sass = require('sass')
const polyfill = require('babel-polyfill')
module.exports = {
entry: './index.js',
mode: 'development',
output: {
path: __dirname + "/build",
publicPath: '/',
filename: "bundle.js"
},
resolve: {
extensions: ['.js', '.jsx']
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node-modules/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.(css|scss)$/,
use: [
'style-loader',
'css-loader',
'sass-loader'
]
},
{
test: /\.(png|svg|jpg|gif)$/,
use: ['file-loader']
}
]
},
devServer: {
historyApiFallback: true
},
plugins: [new HTMLWebpackPlugin({
template: ['build/', 'index.html'].join(''),
minify: {
collapseWhitespace: true,
removeAttributeQuotes: true
}
})]
}
filename: 'bundle.js'
в output на filename: '[name].js'
что будет?О
SE