Giter Club home page Giter Club logo

zw-webpack-config's Introduction

FRONTEND CODING INTERVIEW QUESTION 1

This repository will address the following project requirements:

"1. Create a new, empty npm project and write a webpack configuration that fulfills the following requirements:

  • Has a single javascript file as the entrypoint into the application
  • Handles Javascript/ES6/React code with both .js and .jsx file extensions; should output a single ES5 .js bundle with a unique hash added to the filename.
  • Handles SCSS code with .scss extensions; should output a single .css file with a unique hash added to the filename.
  • Handles IMG file with .jpeg, .jpg, .png, and .gif extensions; should return a link referencing the file
  • Handles SVG file with .svg extension; return a base-64 data-encoded string if the file is < 1mb and a link to the file otherwise Feel free to begin with the Babel "Getting Started" template from http://ccoenraets.github.io/es6-tutorial/setup-webpack/ and modify as needed. Webpack's docs are also helpful, in particular: https://webpack.js.org/guides/asset-management/.

Please commit your code incrementally, so we can follow your thinking."

zw-webpack-config's People

Contributors

kevinbehan 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.