question : when the project uses the react framework + webpack, to run npm start in the development environment, the page displays a page similar to the server root directory, but the normal file resources are not loaded. Ask for help urgently!
Code :
package.json:
{
"name": "project",
"version": "1.0.0",
"description": "",
"main": "bundle.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack-dev-server --mode development",
"build": "webpack --mode production"
},
"author": "whj",
"license": "ISC",
"devDependencies": {
"antd": "^3.4.1",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-plugin-import": "^1.7.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"css-loader": "^0.28.11",
"echarts": "^3.8.5",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^1.1.11",
"font-awesome": "^4.7.0",
"handsontable-pro": "^1.14.2",
"html-webpack-plugin": "^3.2.0",
"less": "^3.0.1",
"less-loader": "^4.1.0",
"react": "^16.3.1",
"react-dom": "^16.3.1",
"react-handsontable": "^0.3.1",
"react-highcharts": "^12.0.0",
"react-redux": "^5.0.7",
"react-router-dom": "^4.2.2",
"redux": "^3.7.2",
"style-loader": "^0.20.3",
"url-loader": "^1.0.1",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"webpack-dev-server": "^3.1.3",
"whatwg-fetch": "^2.0.4"
}
}
webpack.config.js:
var path = require("path");
var ExtractTextPlugin = require("extract-text-webpack-plugin"); //js
var HtmlWebpackPlugin = require("html-webpack-plugin"); //html
module.exports = {
entry:path.resolve(__dirname, "src/entry.jsx"),
output:{
filename:"bundle.js",
path:path.resolve(__dirname, "./dist")
},
resolve: {
extensions: [".js", ".jsx", ".less", ".css"]
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract("css-loader") //cssjs
},
{
test: /\.less$/,
use: ExtractTextPlugin.extract(["css-loader", "less-loader"]) //lesscssjs
},
{
test: /\.(jpg|png|gif)$/, //
use: "url-loader?limit=8192&name=img/[name][hash].[ext]" //81928kfile-loader
},
{
test: /\.(woff|woff2|eot|ttf|otf|svg)$/, //
use: "url-loader?limit=1024&name=font/[name][hash].[ext]" //10241kfile-loader
}
]
},
//
devServer:{
port: 3000, //8090
open:true, // localhost:8080
openPage:"-sharp/dispatch/make", //url
proxy: { //
"/WHP.HydroPower": {
target: "http://localhost:8080",
secure: false
}
}
},
plugins: [
//js
new ExtractTextPlugin("styles.css"),
//html
new HtmlWebpackPlugin({
template: __dirname + "/src/index.html", //htmlhtml,bundle.jscss
favicon: __dirname + "/src/ico/favicon.ico" //
})
]
}
output of console after npm start:
PS D:\Shang Gu Project\CQFCS\WPD.CQFHDD> npm start
> project@1.0.0 start D:\Shang Gu Project\CQFCS\WPD.CQFHDD
> webpack-dev-server --mode development
i wds: Project is running at http://localhost:3000/
i wds: webpack output is served from /
i wdm: wait until bundle finished: /
i wdm: Hash: 1df8a4e288d5b0772404
Version: webpack 4.5.0
Time: 12724ms
Built at: 2018-4-16 09:57:35
Asset Size Chunks Chunk Names
img/errorb5c9b223d7dc40d8f56617c8979d30a2.jpg 103 KiB
[emitted]
img/side-nav-bgf115cc8f38818b0eaecb82c0e29e34c4.png 99.9 KiB
[emitted]
img/bgfe6785fd55248f8c9f27a7c167b00f2e.png 2.01 MiB
[emitted]
bundle.js 8.1 MiB main [emitted] main
styles.css 945 KiB main [emitted] main
favicon.ico 4.19 KiB
[emitted]
index.html 291 bytes
[emitted]
Entrypoint main = bundle.js styles.css
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {main} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {main} [built]
[./node_modules/react-redux/es/index.js] 230 bytes {main} [built]
[./node_modules/react/index.js] 190 bytes {main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/url/url.js] 22.8 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:3000] (webpack)-dev-server/client?http://localhost:3000 7.75 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.58 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 77 bytes {main} [built]
[0] multi (webpack)-dev-server/client?http://localhost:3000 ./src/entry.jsx 40 bytes {main} [built]
[./src/container/store/configureStore.js] 471 bytes {main} [built]
[./src/entry.jsx] 736 bytes {main} [built]
[./src/router/routeMap.jsx] 7.33 KiB {main} [built]
+ 1288 hidden modules
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\dist\antd.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/dist/antd.css] ./node_modules/css-loader!./node_modules/antd/dist/antd.css 565 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\button\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/button/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/button/style/index.css 28.7 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\checkbox\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/checkbox/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/checkbox/style/index.css 6.1 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\date-picker\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/date-picker/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/date-picker/style/index.css 43.9 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\grid\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/grid/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/grid/style/index.css 82.4 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\input-number\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/input-number/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/input-number/style/index.css 6.74 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\input\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/input/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/input/style/index.css 10.5 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\layout\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/layout/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/layout/style/index.css 2.99 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\menu\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/menu/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/menu/style/index.css 28 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\message\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/message/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/message/style/index.css 2.28 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\modal\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/modal/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/modal/style/index.css 4.86 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\radio\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/radio/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/radio/style/index.css 7.75 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\select\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/select/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/select/style/index.css 16.4 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\spin\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/spin/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/spin/style/index.css 5.46 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/style/index.css 69.8 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\tabs\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/tabs/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/tabs/style/index.css 16.6 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\time-picker\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/time-picker/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/time-picker/style/index.css 9.25 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\tooltip\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/tooltip/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/tooltip/style/index.css 3.82 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\antd\es\tree\style\index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/antd/es/tree/style/index.css] ./node_modules/css-loader!./node_modules/antd/es/tree/style/index.css 14.6 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\common\public.less: Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/handsontable-pro/dist/handsontable.full.css] ./node_modules/css-loader!./node_modules/handsontable-pro/dist/handsontable.full.css 45.1 KiB {0} [built]
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/common/public.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/common/public.less 5.76 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\bg-gis\style.less:
1 asset
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/bg-gis/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/bg-gis/style.less 361 bytes {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
[./node_modules/css-loader/lib/url/escape.js] 448 bytes {0} [built]
[./src/container/body/bg-gis/bg.png] 88 bytes {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\dispatch\programMaking\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/dispatch/programMaking/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/dispatch/programMaking/style.less 1.17 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\jobForecast\boundaryFlow\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/boundaryFlow/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/boundaryFlow/style.less 1.11 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\jobForecast\forecastResult\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/forecastResult/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/forecastResult/style.less 2.26 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\jobForecast\futureRainfall\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/futureRainfall/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/futureRainfall/style.less 1.1 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\jobForecast\historyListSearch\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/historyListSearch/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/historyListSearch/style.less 2.41 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\jobForecast\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/jobForecast/style.less 1.16 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\body\prediction\resultManagement\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/resultManagement/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/body/prediction/resultManagement/style.less 1.82 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\error\style.less:
1 asset
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/error/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/error/style.less 756 bytes {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
[./node_modules/css-loader/lib/url/escape.js] 448 bytes {0} [built]
[./src/container/error/error.jpg] 91 bytes {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\nav\style.less:
1 asset
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/nav/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/nav/style.less
1.43 KiB {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
[./node_modules/css-loader/lib/url/escape.js] 448 bytes {0} [built]
[./src/container/nav/side-nav-bg.png] 97 bytes {0} [built]
Child extract-text-webpack-plugin ../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\extract-text-webpack-plugin\dist ../../../Shang
Gu Project\CQFCS\WPD.CQFHDD\node_modules\css-loader\index.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\node_modules\less-loader\dist\cjs.js!../../../Shang Gu Project\CQFCS\WPD.CQFHDD\src\container\style.less:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[./node_modules/css-loader/index.js!./node_modules/less-loader/dist/cjs.js!./src/container/style.less] ./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./src/container/style.less 803 bytes {0} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {0} [built]
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 363 bytes {0} [built]
[./node_modules/lodash/lodash.js] 527 KiB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 519 bytes {0} [built]
i wdm: Compiled successfully.
shows that the compilation was successful, but after running it, the page looks like this:
Environment :
node.js @ 8.11.1
webpack @ 4.5.0
npm @ 5.3.0
has all kinds of Baidu to no avail, the key is the same configuration of the same code, colleagues there can display a normal page. I really can"t find the reason. Please help!