Webpack 筆記
Introduction
1. Developing with Webpack
1.1 Getting Started
Setting Up the Project
Installing Webpack
Executing Webpack
Directory Structure
Setting Up Assets
Setting Up Webpack Configuration
Adding a Build Shortcut
1.2 Splitting the Configuration
Setting Up webpack-merge
Integrating webpack-validator
1.3 Automatic Browser Refresh
Getting Started with webpack-dev-server
Attaching webpack-dev-server to the Project
Configuring Hot Module Replacement (HMR)
Defining Configuration for HMR
1.4 Refreshing CSS
Loading CSS
Setting Up the Initial CSS
Understanding CSS Scoping and CSS Modules
1.5 Enabling Sourcemaps
Enabling Sourcemaps During Development
Sourcemap Types Supported by Webpack
Sourcemaps for Styling
2 Building with Webpack
2.1 Minifying the Build
Generating a Baseline Build
Minifying the Code
Controlling UglifyJS through Webpack
2.2 Setting Environment Variables
The Basic Idea of DefinePlugin
Setting process.env.NODE_ENV
Powered by
GitBook
2 Building with Webpack
2. Building with Webpack
來源:
http://survivejs.com/webpack/building-with-webpack/
results matching "
"
No results matching "
"