Giter Site home page Giter Site logo

sdfsdf's Introduction

Material-UI - Example Webpack Project

This is an example project that uses Material-UI.

Installation

After cloning the repository, install dependencies:

cd <project folder>/material-ui/examples/webpack-example
npm install

Now you can run your local server:

npm start

Server is located at http://localhost:3000

Note: To allow external viewing of the demo, change the following value in webpack-dev-server.config.js

host: 'localhost'  //Change to '0.0.0.0' for external facing server

Description of Webpack

Webpack is a module bundler that we are using to run our documentation site. This is a quick overview of how the configuration file works.

Webpack Configuration:

Entry

Webpack creates entry points for the application to know where it starts.

Output

This is where the bundled project will go to and any other files necessary for it to run.

Plugins

These are plugins Webpack uses for more functionality. The HTML Webpack Plugin, for example, will add the index.html to your build folder.

Modules

Modules and other things that are required will usually need to be loaded and interpreted by Webpack when bundling, and this is where Webpack looks for the different loaders. *Loading .js files in es6 and es7 will require a loader like babel-loader to interpret the files into es5.

sdfsdf's People

Contributors

zzzzasd avatar

Watchers

James Cloos avatar

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.