webpack -p CLI आदेश es2015 कोडwebpack -p es2015 कोड कुरूप कर देना करने के लिए
package.json
"devDependencies": {
"babel": "^6.5.2",
"babel-core": "^6.13.2",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.13.2"
}
webpack.config.js
var webpack = require("webpack");
var config = {
entry: './src/app.js',
devtool: "source-map",
output: {
path: '../Scripts',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
},
include: ["./src"],
exclude: /node_modules/
}
]
}
}
module.exports = config;
समय त्रुटि कुरूप कर देना करने में विफल रहता विफल रहता है webpack -p
ERROR in bundle.js from UglifyJs
Unexpected character '`' [./src/LineEndRenderer.js:33,0]
(es2015 टेम्पलेट स्ट्रिंग उपयोग)
webpack -d
चल रहा है ठीक काम करता है।
से
UglifyJS2-harmony.zip
के साथ अपने वैश्विकuglify-js
NPM फ़ोल्डर की जगह क्या तुमने कभी यह पता लगा था? मैं एक ही मुद्दे में चल रहा हूं ('" वेबपैक ":"^2.1.0-बीटा.21 "') – memoनहीं, अभी तक नहीं :(मुझे रिलीज से कुछ समय पहले मिला है, इसलिए मैं अभी-डी के साथ जारी रहा हूं समय – Robodude