Bläddra i källkod

Added webpack

development
Safet Purkovic 4 år sedan
förälder
incheckning
a74df0d34d
4 ändrade filer med 14 tillägg och 2 borttagningar
  1. 2
    1
      .gitignore
  2. 2
    1
      package.json
  3. 1
    0
      src/index.js
  4. 9
    0
      webpack.config.js

+ 2
- 1
.gitignore Visa fil

node_modules/
node_modules/
dist/

+ 2
- 1
package.json Visa fil

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

+ 1
- 0
src/index.js Visa fil

console.log('hello world')

+ 9
- 0
webpack.config.js Visa fil

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

Laddar…
Avbryt
Spara