第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

build 報(bào)錯(cuò)

const path = require('path')

const {VueLoaderPlugin} = require('vue-loader')


module.exports = {

entry: path.join(__dirname, 'src/index.js'),

output: {

filename: 'bundle.js',

path: path.join(__dirname, 'dist')

},

module: {

rules: [

{

test: /.vue$/,

loader: 'vue-loader'

},

{

test: /.css$/,

loader: 'css-loader'

}

]

},

plugins: [

vue VueLoaderPlugin()

]

}

上面是代碼,下面是報(bào)錯(cuò)

SyntaxError: Unexpected identifier

? ? at new Script (vm.js:80:7)

? ? at NativeCompileCache._moduleCompile (D:\網(wǎng)頁\todo\node_modules\v8-compile-cache\v8-compile-cache.js:240:18)

? ? at Module._compile (D:\網(wǎng)頁\todo\node_modules\v8-compile-cache\v8-compile-cache.js:186:36)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

? ? at Module.load (internal/modules/cjs/loader.js:600:32)

? ? at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

? ? at Function.Module._load (internal/modules/cjs/loader.js:531:3)

? ? at Module.require (internal/modules/cjs/loader.js:637:17)

? ? at require (D:\網(wǎng)頁\todo\node_modules\v8-compile-cache\v8-compile-cache.js:161:20)

? ? at WEBPACK_OPTIONS (D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\utils\convert-argv.js:115:13)

? ? at requireConfig (D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\utils\convert-argv.js:117:6)

? ? at D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\utils\convert-argv.js:124:17

? ? at Array.forEach (<anonymous>)

? ? at module.exports (D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\utils\convert-argv.js:122:15)

? ? at yargs.parse (D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\cli.js:71:45)

? ? at Object.parse (D:\網(wǎng)頁\todo\node_modules\yargs\yargs.js:567:18)

? ? at D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\cli.js:49:8

? ? at Object.<anonymous> (D:\網(wǎng)頁\todo\node_modules\webpack-cli\bin\cli.js:375:3)

? ? at Module._compile (internal/modules/cjs/loader.js:701:30)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

? ? at Module.load (internal/modules/cjs/loader.js:600:32)

? ? at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

? ? at Function.Module._load (internal/modules/cjs/loader.js:531:3)

? ? at Module.require (internal/modules/cjs/loader.js:637:17)

? ? at require (internal/modules/cjs/helpers.js:22:18)

? ? at Object.<anonymous> (D:\網(wǎng)頁\todo\node_modules\webpack\bin\webpack.js:156:2)

? ? at Module._compile (internal/modules/cjs/loader.js:701:30)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

? ? at Module.load (internal/modules/cjs/loader.js:600:32)

? ? at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! todo@1.0.0 build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the todo@1.0.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!? ? ?D:\nodejs\node_cache\_logs\2019-05-12T10_55_54_328Z-debug.log


正在回答

2 回答

//?webpack.config.js
const?VueLoaderPlugin?=?require('vue-loader/lib/plugin')
看官方文檔怎么寫的吧https://vue-loader.vuejs.org/guide/#manual-setup
0 回復(fù) 有任何疑惑可以回復(fù)我~

plugins: [

new VueLoaderPlugin()

]

看是不是這里寫錯(cuò)了


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
Vue+Webpack打造todo應(yīng)用
  • 參與學(xué)習(xí)       84617    人
  • 解答問題       812    個(gè)

用前端最熱門框架Vue+最火打包工具Webpack打造todo應(yīng)用

進(jìn)入課程

build 報(bào)錯(cuò)

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)