mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-24 08:08:54 -06:00
revert: feat: new option "preserveWhitespace""
This reverts commit ea834412f6.
This commit is contained in:
@@ -29,11 +29,6 @@ module.exports = {
|
||||
// explicitly transpile a dependency with this option.
|
||||
transpileDependencies: [/* string or regex */],
|
||||
|
||||
// whether to preserve whitespaces between elements during template
|
||||
// compilation. Defaults to `false` for smaller compiled code size and
|
||||
// performance.
|
||||
preserveWhitepsace: false,
|
||||
|
||||
// generate sourceMap for production build?
|
||||
productionSourceMap: true,
|
||||
|
||||
@@ -48,16 +43,16 @@ module.exports = {
|
||||
// can also be an object of options to pass to extract-text-webpack-plugin
|
||||
extract: true,
|
||||
|
||||
// Enable CSS modules for all css / pre-processor files.
|
||||
// This option does not affect *.vue files.
|
||||
modules: false,
|
||||
|
||||
// enable CSS source maps?
|
||||
sourceMap: false,
|
||||
|
||||
// pass custom options to pre-processor loaders. e.g. to pass options to
|
||||
// sass-loader, use { sass: { ... } }
|
||||
loaderOptions: {}
|
||||
loaderOptions: {},
|
||||
|
||||
// Enable CSS modules for all css / pre-processor files.
|
||||
// This option does not affect *.vue files.
|
||||
modules: false
|
||||
},
|
||||
|
||||
// use thread-loader for babel & TS in production build
|
||||
|
||||
@@ -48,7 +48,7 @@ module.exports = (api, options) => {
|
||||
.loader('vue-loader')
|
||||
.options({
|
||||
compilerOpitons: {
|
||||
preserveWhitespace: options.preserveWhitespace
|
||||
preserveWhitespace: false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ const schema = createSchema(joi => joi.object({
|
||||
outputDir: joi.string(),
|
||||
compiler: joi.boolean(),
|
||||
transpileDependencies: joi.array(),
|
||||
preserveWhitespace: joi.boolean(),
|
||||
productionSourceMap: joi.boolean(),
|
||||
parallel: joi.boolean(),
|
||||
devServer: joi.object(),
|
||||
@@ -55,9 +54,6 @@ exports.defaults = () => ({
|
||||
// deps to transpile
|
||||
transpileDependencies: [/* string or regex */],
|
||||
|
||||
// whether to preserve whitespaces between elements
|
||||
preserveWhitespace: false,
|
||||
|
||||
// sourceMap for production build?
|
||||
productionSourceMap: true,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user