Giter Club home page Giter Club logo

bobby's People

Contributors

istefo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bobby's Issues

npm run production

i am new to reactjs and trying my hands on a tutorial online..i have been following the steps keenly but i got stuck at a point where my webpack dont seem to run and create my index.bundle.js file...

This my package.json code
`{
"name": "bobby",
"version": "1.0.0",
"description": "my first react project",
"main": "index.js",
"scripts": {
"production": "webpack -p"
},
"author": "sinopi",
"license": "ISC",
"dependencies": {
"jquery": "^3.1.0",
"react": "^15.3.0",
"react-dom": "^15.3.0"
},
"devDependencies": {
"babel-core": "^6.11.4",
"babel-loader": "^6.2.4",
"babel-preset-react": "^6.11.1",
"coffee-loader": "^0.7.2",
"coffee-script": "^1.10.0",
"html-webpack-plugin": "^2.22.0",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
}
}

This is my webpack.config.js code

/**

  • Created by SINOPI on 8/4/2016.
    */
    // In webpack.config.js
    var HtmlWebpackPlugin = require('html-webpack-plugin');
    var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
    template: __dirname + '/app/index.html',
    filename:} 'index.html',
    inject: 'body'
    });
    module.exports = {
    entry: [
    './app/index.js'
    ],
    module: {
    loaders: [
    {test: /.babel$/, include: __dirname + '/app', loader: "babel-loader"}
    ]
    },
    output: {
    filename: "index_bundle.js",
    path: __dirname + '/dist'
    },
    plugin: [HTMLWebpackPluginConfig]
    };
    `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.