-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebPack.txt
54 lines (45 loc) · 1.37 KB
/
WebPack.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
npm i -D webpack webpack-cli => webpask i anelu hamar
npm i clean-webpack-plugin => dist papkan vory petq chi maqrelu hamar
npx webpack => webacky run talu hamar
npx webpack --mode development => run talu hmar development rejimum
ete chenq uzum derov grenq vor rejimum ashxati stextum enq weback-config.js file u grum
mode kara lini erku rejimum development u production
module.exports = {
mode: "development",
plugins: [
new CleanWebpackPlugin
]
};
nkarneri jamanak webpacky chi gaskanumdra hamar arandin modul enq nstachnum
npm i file-loader u grum en loadernery vory mez petqa orinak nkari hamar
https://webpack.js.org/loaders/ dokumentachian
module.exports = {
mode: "development",
module: {
rules: [
{
test: /\.png$/,
use: [{loader: 'file-loader'}]
}
]
}
};
ete uzum enq orinak bolor nkarnery linen mek papkum
nolor loaderneri greladzevy dokumentachiayum ka u hishel petq chi
module.exports = {
mode: "development",
module: {
rules: [
{
test: /\.png$/,
use: [{
loader: 'file-loader',
options: {
outputPath: 'images',
}
}]
}
]
}
};
npm i -D babel-loader webpacky babeli het kcelu hamar