webpack-2

Sourcemaps are detected in chrome but original source is not loaded, using webpack-2

女生的网名这么多〃 提交于 2020-12-19 19:34:50
问题 When running an application that is built using webpack 2, sourcemaps are detected in chrome but original source is not loaded. I'm using webpack beta21. These files used to be detected automatically, ie when a breakpoint was put in the the output from webpack js file, the source view would jump to the original source input to webpack. But now I am stuck with this screen: config: var path = require("path"); var webpack = require("webpack"); var WebpackBuildNotifierPlugin = require('webpack

How to remove all comments with CSS Loader with webpack 2 in string mode?

梦想的初衷 提交于 2020-12-08 06:44:06
问题 I use this config for my webpack 2 { test: /\.css$/i, use: ExtractTextPlugin.extract({ use: 'css-loader?minimize' }) } How to remove all comments based on string mode ? I use this but does not work 'css-loader?minimize&{discardComments:{removeAll:true}}' Can anyone help me ? 回答1: You could use optimize-css-assets-webpack-plugin to remove comments: example 回答2: Might as well keep going and add SASS in there also. Here is our config. const style_loader = ExtractTextPlugin.extract({ fallback:

Service Worker not working for Mobile Web (Chrome, Firefox, IE)

你。 提交于 2020-12-06 12:14:05
问题 I set up a service worker for a static web application that needs to work on mobile phones. I'm using react/webpack2 for this application. Service Worker installs and works greatly when I open the application via desktop, but when I try to visit the application through mobile, it does not install. When SW finishes installing, it gives you an alert message ("onInstalled"); https://abo-deg.surge.sh (here is an example) https://abo-deg.surge.sh/survey/background https://github.com/strongharris

Service Worker not working for Mobile Web (Chrome, Firefox, IE)

元气小坏坏 提交于 2020-12-06 12:11:21
问题 I set up a service worker for a static web application that needs to work on mobile phones. I'm using react/webpack2 for this application. Service Worker installs and works greatly when I open the application via desktop, but when I try to visit the application through mobile, it does not install. When SW finishes installing, it gives you an alert message ("onInstalled"); https://abo-deg.surge.sh (here is an example) https://abo-deg.surge.sh/survey/background https://github.com/strongharris

Vue is not a constructor

情到浓时终转凉″ 提交于 2020-12-01 09:13:40
问题 I using webpack , after build and run in chrome show this error,I don't know how to solve it. My code is very simple: { "devDependencies": { "babel-core": "^6.23.1", "babel-loader": "^6.3.2", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.22.0", "babel-runtime": "5", "css-loader": "^0.26.1", "html-webpack-plugin": "^2.28.0", "vue-hot-reload-api": "^2.0.9", "vue-html-loader": "^1.2.3", "vue-loader": "10.0.3", "vue-style-loader": "^2.0.0", "vue-template-compiler": "^2.1

Vue is not a constructor

天大地大妈咪最大 提交于 2020-12-01 09:10:33
问题 I using webpack , after build and run in chrome show this error,I don't know how to solve it. My code is very simple: { "devDependencies": { "babel-core": "^6.23.1", "babel-loader": "^6.3.2", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.22.0", "babel-runtime": "5", "css-loader": "^0.26.1", "html-webpack-plugin": "^2.28.0", "vue-hot-reload-api": "^2.0.9", "vue-html-loader": "^1.2.3", "vue-loader": "10.0.3", "vue-style-loader": "^2.0.0", "vue-template-compiler": "^2.1