help to work with linked modules and npx

#1076 @Jinjiang
This commit is contained in:
Pooya Parsa 2017-08-01 01:57:22 +04:30
parent b460e4e2f2
commit 61a424528c
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ export default function webpackBaseConfig ({ isClient, isServer }) {
loader: 'babel-loader',
exclude: /node_modules/,
query: defaults(this.options.build.babel, {
presets: ['vue-app'],
presets: [require.resolve('babel-preset-vue-app')],
babelrc: false,
cacheDirectory: !!this.options.dev
})

View File

@ -3,7 +3,7 @@ import { extractStyles, styleLoader } from './helpers'
export default function ({ isClient }) {
let babelOptions = JSON.stringify(defaults(this.options.build.babel, {
presets: ['vue-app'],
presets: [require.resolve('babel-preset-vue-app')],
babelrc: false,
cacheDirectory: !!this.options.dev
}))