Windows 10 webpack-dev-server doesn't work on VueJS Template project?How to separate index.html and assets in webpack-dev-server?Webpack doesn't pass watchOptions to watcherIssue getting webpack-dev-server to loadHow to fix HTML file comments not being ignored by Webpack Dev Server?Webpack dev server not recompiling when files changeUsing Htmlwebpackplugin with Webpack-Dev-MiddlewareWebpack css issue, missing bundle.cssvue-cli 3.0 ./src/main.js in multi (webpack)-dev-server/client?http://10.0.68.112:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.jswebpack-dev-server npm run dev throwing TypeError: Cannot set property 'port' of undefinedUsing webpack-dev-server 3 with parallel-webpack
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
Can a stored procedure reference the database in which it is stored?
What is the term for a person whose job is to place products on shelves in stores?
Find the identical rows in a matrix
Unknown code in script
Israeli soda type drink
What was Apollo 13's "Little Jolt" after MECO?
std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
Why did C use the -> operator instead of reusing the . operator?
Mistake in years of experience in resume?
Is Electric Central Heating worth it if using Solar Panels?
Which big number is bigger?
Co-worker works way more than he should
Should the Product Owner dictate what info the UI needs to display?
My bank got bought out, am I now going to have to start filing tax returns in a different state?
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
What does "function" actually mean in music?
Extracting Dirichlet series coefficients
Why must Chinese maps be obfuscated?
Where was the County of Thurn und Taxis located?
A strange hotel
Negative Resistance
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Windows 10 webpack-dev-server doesn't work on VueJS Template project?
How to separate index.html and assets in webpack-dev-server?Webpack doesn't pass watchOptions to watcherIssue getting webpack-dev-server to loadHow to fix HTML file comments not being ignored by Webpack Dev Server?Webpack dev server not recompiling when files changeUsing Htmlwebpackplugin with Webpack-Dev-MiddlewareWebpack css issue, missing bundle.cssvue-cli 3.0 ./src/main.js in multi (webpack)-dev-server/client?http://10.0.68.112:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.jswebpack-dev-server npm run dev throwing TypeError: Cannot set property 'port' of undefinedUsing webpack-dev-server 3 with parallel-webpack
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have the following package.json
entry
{
"name": "simple_flask_vuejs",
"version": "1.0.0",
"description": "a beginners vuejs app",
"author": "me",
"private": true,
"scripts":
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
...
and when I run npm run dev
I get
DONE Compiled successfully in 4919ms 17:41:27
I Your application is running here: http://localhost:8082
But when I goto that address get the famous Cannot GET /
in my browser
below is my webpack.dev.conf.js
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig,
module:
rules: utils.styleLoaders( sourceMap: config.dev.cssSourceMap, usePostCSS: true )
,
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: ,
plugins: [
new webpack.DefinePlugin(
'process.env': require('../config/dev.env')
),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin(
filename: 'static/index.html',
template: 'static/index.html',
inject: true
),
// copy custom static assets
new CopyWebpackPlugin([
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
])
]
)
module.exports = new Promise((resolve, reject) =>
portfinder.basePort = process.env.PORT )
javascript vue.js webpack
add a comment |
I have the following package.json
entry
{
"name": "simple_flask_vuejs",
"version": "1.0.0",
"description": "a beginners vuejs app",
"author": "me",
"private": true,
"scripts":
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
...
and when I run npm run dev
I get
DONE Compiled successfully in 4919ms 17:41:27
I Your application is running here: http://localhost:8082
But when I goto that address get the famous Cannot GET /
in my browser
below is my webpack.dev.conf.js
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig,
module:
rules: utils.styleLoaders( sourceMap: config.dev.cssSourceMap, usePostCSS: true )
,
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: ,
plugins: [
new webpack.DefinePlugin(
'process.env': require('../config/dev.env')
),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin(
filename: 'static/index.html',
template: 'static/index.html',
inject: true
),
// copy custom static assets
new CopyWebpackPlugin([
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
])
]
)
module.exports = new Promise((resolve, reject) =>
portfinder.basePort = process.env.PORT )
javascript vue.js webpack
Well,Your application is running
. what error are you getting?
– varit05
Mar 22 at 16:49
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19
add a comment |
I have the following package.json
entry
{
"name": "simple_flask_vuejs",
"version": "1.0.0",
"description": "a beginners vuejs app",
"author": "me",
"private": true,
"scripts":
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
...
and when I run npm run dev
I get
DONE Compiled successfully in 4919ms 17:41:27
I Your application is running here: http://localhost:8082
But when I goto that address get the famous Cannot GET /
in my browser
below is my webpack.dev.conf.js
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig,
module:
rules: utils.styleLoaders( sourceMap: config.dev.cssSourceMap, usePostCSS: true )
,
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: ,
plugins: [
new webpack.DefinePlugin(
'process.env': require('../config/dev.env')
),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin(
filename: 'static/index.html',
template: 'static/index.html',
inject: true
),
// copy custom static assets
new CopyWebpackPlugin([
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
])
]
)
module.exports = new Promise((resolve, reject) =>
portfinder.basePort = process.env.PORT )
javascript vue.js webpack
I have the following package.json
entry
{
"name": "simple_flask_vuejs",
"version": "1.0.0",
"description": "a beginners vuejs app",
"author": "me",
"private": true,
"scripts":
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
...
and when I run npm run dev
I get
DONE Compiled successfully in 4919ms 17:41:27
I Your application is running here: http://localhost:8082
But when I goto that address get the famous Cannot GET /
in my browser
below is my webpack.dev.conf.js
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig,
module:
rules: utils.styleLoaders( sourceMap: config.dev.cssSourceMap, usePostCSS: true )
,
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: ,
plugins: [
new webpack.DefinePlugin(
'process.env': require('../config/dev.env')
),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin(
filename: 'static/index.html',
template: 'static/index.html',
inject: true
),
// copy custom static assets
new CopyWebpackPlugin([
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
])
]
)
module.exports = new Promise((resolve, reject) =>
portfinder.basePort = process.env.PORT )
javascript vue.js webpack
javascript vue.js webpack
asked Mar 22 at 16:44
ErikErik
1,11711740
1,11711740
Well,Your application is running
. what error are you getting?
– varit05
Mar 22 at 16:49
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19
add a comment |
Well,Your application is running
. what error are you getting?
– varit05
Mar 22 at 16:49
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19
Well,
Your application is running
. what error are you getting?– varit05
Mar 22 at 16:49
Well,
Your application is running
. what error are you getting?– varit05
Mar 22 at 16:49
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304265%2fwindows-10-webpack-dev-server-doesnt-work-on-vuejs-template-project%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304265%2fwindows-10-webpack-dev-server-doesnt-work-on-vuejs-template-project%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Well,
Your application is running
. what error are you getting?– varit05
Mar 22 at 16:49
Hard to know but a few things could be causing this, could be another process like a dev server that never got closed.
– infamoustrey
Mar 22 at 17:33
@varit05 see the error I typed on GET above... "CANNOT GET"
– Erik
Mar 22 at 22:18
@infamoustrey , imagine I've rebooted this PC.. and it's never ever worked in my experience. I am reading on github I think it's a bug, and I need to upgrade something or other in NPM
– Erik
Mar 22 at 22:19