AB
Size: a a a
AB
AB
// добавляем css в проект
require('./skin/dialog.css');
// а здесь нужен этот же самый css, но только в виде текста
const css = require('./skin/dialog.css');
P
{
test: /\.(svg|png|jpg|gif)$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'assets',
},
},
},
АХ
// добавляем css в проект
require('./skin/dialog.css');
// а здесь нужен этот же самый css, но только в виде текста
const css = require('./skin/dialog.css');
AB
АХ
АХ
AB
АХ
AB
АХ
P
A
AB
const x1 = require('!css-loader!./skin/editor.css');
P
{import logo from '../assets/medialogo.png'
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'img/',
},
},
{
loader: 'image-webpack-loader',
options: {
bypassOnDebug: true,
},
},
],
},
АХ
const x1 = require('!css-loader!./skin/editor.css');
АХ
{import logo from '../assets/medialogo.png'
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'img/',
},
},
{
loader: 'image-webpack-loader',
options: {
bypassOnDebug: true,
},
},
],
},
P