Article From:

Using webpack to write a small example, webpack.config.js is configured as follows:

var webpack = require('webpack');
    var path = require('path');
    module.exports = {
        entry:  __dirname + "/src/js/index.js",  //Entry fileModule:{Loaders:[{Test: /\.js? $/, / / regular parsing all JS filesExclude: / (node_modules) / / / / folder not includedLoader:'babel-loader', / / babel-loadEr to parseQuery:{Presets:['react','es2015'] / / load package}]]]},Output:{/ / output filePath: __dirname +'/dist/js',Filename: "bundle.js"}}

After webpack-dev-server starts, the code can see that the page has been refreshed, but the content has not changed.

Is the allocation of my mind useless, or for other reasons?

Answer 0:

Yourshello word 33333What is not written in state

Leave a Reply

Your email address will not be published. Required fields are marked *