Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
const defaultOptions = { compiler: require('@dcloudio/uni-template-compiler'), hotReload: false, cacheDirectory: false, cacheIdentifier: false } const defaultCompilerOptions = { preserveWhitespace: false } module.exports = { test: [/\.vue$/, /\.nvue$/], loader: require.resolve('@dcloudio/vue-cli-plugin-uni/packages/vue-loader'), options (options = {}, compilerOptions = {}) { return Object.assign({}, defaultOptions, options, { compilerOptions: Object.assign({}, defaultCompilerOptions, compilerOptions) }) } }