소스 검색

Added webpack

development
Safet Purkovic 4 년 전
부모
커밋
a74df0d34d
4개의 변경된 파일14개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    1
      .gitignore
  2. 2
    1
      package.json
  3. 1
    0
      src/index.js
  4. 9
    0
      webpack.config.js

+ 2
- 1
.gitignore 파일 보기

@@ -1 +1,2 @@
node_modules/
node_modules/
dist/

+ 2
- 1
package.json 파일 보기

@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
},
"repository": {
"type": "git",

+ 1
- 0
src/index.js 파일 보기

@@ -0,0 +1 @@
console.log('hello world')

+ 9
- 0
webpack.config.js 파일 보기

@@ -0,0 +1,9 @@
const path = require("path");
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
filename: "main.js",
path: path.resolve(__dirname,"./dist")
}
}

Loading…
취소
저장