/webpack-component-config

webpack config fun - sass loaders, minification, unnecessary use of regex, multiple html files and entry points

Primary LanguageJavaScript

Folder & File Structure for Webpack -

Create simple components in the 'components' directory.

Make sure to have an index.html and an index.js!

Webpack is configured to minify css/scss and js.

Commands

npm run build - builds components to dist/components - each one having their own template/css/js files

npm run start - starts webpack-dev-server on port 9000 - example: localhost:9000/components/