mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
reorder imports
This commit is contained in:
parent
a774a11720
commit
a318144b9a
@ -8,11 +8,11 @@ import PostCompilePlugin from 'post-compile-webpack-plugin'
|
|||||||
import serialize from 'serialize-javascript'
|
import serialize from 'serialize-javascript'
|
||||||
import { createBundleRenderer } from 'vue-server-renderer'
|
import { createBundleRenderer } from 'vue-server-renderer'
|
||||||
import { join, resolve, basename, dirname } from 'path'
|
import { join, resolve, basename, dirname } from 'path'
|
||||||
|
import Tapable from 'tapable'
|
||||||
import { isUrl, r, wp } from './utils'
|
import { isUrl, r, wp } from './utils'
|
||||||
import clientWebpackConfig from './webpack/client.config.js'
|
import clientWebpackConfig from './webpack/client.config.js'
|
||||||
import serverWebpackConfig from './webpack/server.config.js'
|
import serverWebpackConfig from './webpack/server.config.js'
|
||||||
import defaults from './defaults'
|
import defaults from './defaults'
|
||||||
import Tapable from 'tapable'
|
|
||||||
|
|
||||||
const debug = require('debug')('nuxt:build')
|
const debug = require('debug')('nuxt:build')
|
||||||
debug.color = 2 // Force green color
|
debug.color = 2 // Force green color
|
||||||
|
@ -2,9 +2,9 @@ import fs from 'fs-extra'
|
|||||||
import pify from 'pify'
|
import pify from 'pify'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { resolve, join, dirname, sep } from 'path'
|
import { resolve, join, dirname, sep } from 'path'
|
||||||
import { isUrl, promisifyRoute, waitFor } from './utils'
|
|
||||||
import { minify } from 'html-minifier'
|
import { minify } from 'html-minifier'
|
||||||
import Tapable from 'tapable'
|
import Tapable from 'tapable'
|
||||||
|
import { isUrl, promisifyRoute, waitFor } from './utils'
|
||||||
|
|
||||||
const debug = require('debug')('nuxt:generate')
|
const debug = require('debug')('nuxt:generate')
|
||||||
const copy = pify(fs.copy)
|
const copy = pify(fs.copy)
|
||||||
|
@ -2,8 +2,8 @@ import path from 'path'
|
|||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import { uniq } from 'lodash'
|
import { uniq } from 'lodash'
|
||||||
import hash from 'hash-sum'
|
import hash from 'hash-sum'
|
||||||
import { chainFn, sequence } from './utils'
|
|
||||||
import Tapable from 'tapable'
|
import Tapable from 'tapable'
|
||||||
|
import { chainFn, sequence } from './utils'
|
||||||
|
|
||||||
const debug = require('debug')('nuxt:module')
|
const debug = require('debug')('nuxt:module')
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ import fs from 'fs-extra'
|
|||||||
import pify from 'pify'
|
import pify from 'pify'
|
||||||
import serveStatic from 'serve-static'
|
import serveStatic from 'serve-static'
|
||||||
import { resolve, join } from 'path'
|
import { resolve, join } from 'path'
|
||||||
import * as Utils from './utils'
|
|
||||||
import Tapable from 'tapable'
|
import Tapable from 'tapable'
|
||||||
|
import * as Utils from './utils'
|
||||||
import Builder from './builder'
|
import Builder from './builder'
|
||||||
import Renderer from './renderer'
|
import Renderer from './renderer'
|
||||||
import Generator from './generator'
|
import Generator from './generator'
|
||||||
|
@ -2,8 +2,8 @@ import ansiHTML from 'ansi-html'
|
|||||||
import serialize from 'serialize-javascript'
|
import serialize from 'serialize-javascript'
|
||||||
import generateETag from 'etag'
|
import generateETag from 'etag'
|
||||||
import fresh from 'fresh'
|
import fresh from 'fresh'
|
||||||
import { getContext, setAnsiColors, encodeHtml } from './utils'
|
|
||||||
import Tapable from 'tapable'
|
import Tapable from 'tapable'
|
||||||
|
import { getContext, setAnsiColors, encodeHtml } from './utils'
|
||||||
|
|
||||||
const debug = require('debug')('nuxt:render')
|
const debug = require('debug')('nuxt:render')
|
||||||
debug.color = 4 // Force blue color
|
debug.color = 4 // Force blue color
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import vueLoaderConfig from './vue-loader.config'
|
import ExtractTextPlugin from 'extract-text-webpack-plugin'
|
||||||
import { defaults } from 'lodash'
|
import { defaults } from 'lodash'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { isUrl, urlJoin } from '../utils'
|
import { isUrl, urlJoin } from '../utils'
|
||||||
|
import vueLoaderConfig from './vue-loader.config'
|
||||||
import { styleLoader, extractStyles } from './helpers'
|
import { styleLoader, extractStyles } from './helpers'
|
||||||
import ExtractTextPlugin from 'extract-text-webpack-plugin'
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -6,8 +6,8 @@ import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
|
|||||||
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
|
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
|
||||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
|
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
|
||||||
import OfflinePlugin from 'offline-plugin'
|
import OfflinePlugin from 'offline-plugin'
|
||||||
import base from './base.config.js'
|
|
||||||
import { resolve } from 'path'
|
import { resolve } from 'path'
|
||||||
|
import base from './base.config.js'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import webpack from 'webpack'
|
import webpack from 'webpack'
|
||||||
import VueSSRServerPlugin from 'vue-server-renderer/server-plugin'
|
import VueSSRServerPlugin from 'vue-server-renderer/server-plugin'
|
||||||
import nodeExternals from 'webpack-node-externals'
|
import nodeExternals from 'webpack-node-externals'
|
||||||
import base from './base.config.js'
|
|
||||||
import { each } from 'lodash'
|
import { each } from 'lodash'
|
||||||
import { resolve } from 'path'
|
import { resolve } from 'path'
|
||||||
|
import base from './base.config.js'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user