Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd83f094

Browse files
author
Andrew Le
committed
4. Entry and output config as usual
1 parent848500f commitd83f094

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description":"",
66
"main":"index.js",
77
"scripts": {
8-
"start":"webpack --mode production"
8+
"start":"webpack --config webpack.config.js"
99
},
1010
"repository": {
1111
"type":"git",

‎webpack.config.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
constpath=require('path');
2+
3+
module.exports={
4+
mode:'development',
5+
entry:'./src/index.js',
6+
output:{
7+
path:path.resolve(__dirname,'dist'),// dist can be any name
8+
filename:'main.js',// main can be any name
9+
},
10+
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp