Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i ?wds?: Project is running at http://localhost:8080/ #1359

Closed
idessignflo opened this issue Mar 31, 2018 · 1 comment
Closed

i ?wds?: Project is running at http://localhost:8080/ #1359

idessignflo opened this issue Mar 31, 2018 · 1 comment

Comments

@idessignflo
Copy link

  • Operating System: windows 8.1 profetionnel
  • Node Version: v8.9.3
  • NPM Version:5.5.1
  • webpack Version: 4.4.1
  • webpack-dev-server Version: 3.1.1
  • [] This is a bug
  • [ x] This is a modification request

Code

C:\IdessignFlo>npm run dev

IdessignFlo@1.0.0 dev C:\IdessignFlo
webpack-dev-server --mode=development

i ?wds?: Project is running at http://localhost:8080/
i ?wds?: webpack output is served from /
i ?wds?: Content not from webpack is served from C:\IdessignFlo\build
i ?wdm?: Hash: 5c9070ccd45373929456
Version: webpack 4.4.1
Time: 2611ms
Built at: 2018-3-31 19:22:49
Asset Size Chunks Chunk Names
[idessign].bundle.js 1.19 MiB main [emitted] main
index.html 193 bytes [emitted]
Entrypoint main = [idessign].bundle.js
[./node_modules/create-react-class/index.js] 699 bytes {main} [built]
[./node_modules/history/es/index.js] 460 bytes {main} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {main} [built]
[./node_modules/react-router-dom/es/index.js] 925 bytes {main} [built]
[./node_modules/react/index.js] 190 bytes {main} [built]
[./node_modules/url/url.js] 22.8 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 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/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {main} [built]
[0] multi (webpack)-dev-server/client?http://localhost:8080 ./src/client/index.js 40 bytes {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]
[./src/client/index.js] 1.5 KiB {main} [built]
[./src/shared/app/home/home.js] 782 bytes {main} [built]
[./src/shared/component.js] 76 bytes {main} [built]
+ 85 hidden modules
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/html-webpack-plugin/default_index.ejs] 538 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.

  // webpack.config.js

const ExtractTextPlugin = require("extract-text-webpack-plugin");
const HTMPlugin = require('html-webpack-plugin');
const path = require('path');

const CLIENT = path.resolve(__dirname, './src/');
const BUILD_DIR = path.resolve(__dirname, './src/build/');

const browserConfig = {
entry: CLIENT + "/client/index.js",

output:{
path:BUILD_DIR,
// path: path.resolve(__dirname, 'dist'),
filename:'[idessign].bundle.js',
//publicPath:BUILD_DIR,
},
devServer: {
contentBase: path.resolve(__dirname, 'build')
},
module:{
rules:[
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
// presets: ['es2015'],
presets:[ 'react', 'es2015'],
}
},
]
},
plugins:[
new HTMPlugin()
]
};
const serverConfig = {
entry: CLIENT + '/server/server.js',

output:{
path:BUILD_DIR,
filename:'[servers].bundle.js'
},
target: 'node',
node: {
__dirname: false,
__filename: false
},
module:{
rules:[
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015'],
}
},

]

},
plugins:[
new HTMPlugin()
]
};

module.exports = browserConfig,
exports.serverConfig = serverConfig;

  // additional code, remove if not needed.

Expected Behavior

I do not know where index.html

Actual Behavior

i want to see where live index.html

For Bugs; How can we reproduce the behavior?

For Features; What is the motivation and/or use-case for the feature?

I need to see index.html

@SpaceK33z
Copy link
Member

Our issue template states that questions should be asked on StackOverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants