Simple CLI usage of webpack-dev-server

// CLI Usage "scripts": { "build": "webpack", "dev": "webpack-dev-server --hot --inline --no-info --history-api-fallback --content-base public --config webpack.config.babel.js" } // Inside webpack.config.babel.js import path from 'path'; import { configs } from 'webpack-brevity'; export default configs.browser({ cssModule: true, entry: { app: path.resolve('./src/browser.js'), vendors: ['react', 'jquery'], }, output: path.resolve('./public'), src: path.resolve('./src'), });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.