Enum SourceMapMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BOTH
      (experimental) Both sourceMap mode - If you want to have the effect of both inline and external simultaneously.
      DEFAULT
      (experimental) Default sourceMap mode - will generate a .js.map file alongside any generated .js file and add a special //# sourceMappingURL= comment to the bottom of the .js file pointing to the .js.map file.
      EXTERNAL
      (experimental) External sourceMap mode - If you want to omit the special //# sourceMappingURL= comment from the generated .js file but you still want to generate the .js.map files.
      INLINE
      (experimental) Inline sourceMap mode - If you want to insert the entire source map into the .js file instead of generating a separate .js.map file.
    • Enum Constant Detail

      • DEFAULT

        @Stability(Experimental)
        public static final SourceMapMode DEFAULT
        (experimental) Default sourceMap mode - will generate a .js.map file alongside any generated .js file and add a special //# sourceMappingURL= comment to the bottom of the .js file pointing to the .js.map file.
      • EXTERNAL

        @Stability(Experimental)
        public static final SourceMapMode EXTERNAL
        (experimental) External sourceMap mode - If you want to omit the special //# sourceMappingURL= comment from the generated .js file but you still want to generate the .js.map files.
      • INLINE

        @Stability(Experimental)
        public static final SourceMapMode INLINE
        (experimental) Inline sourceMap mode - If you want to insert the entire source map into the .js file instead of generating a separate .js.map file.
      • BOTH

        @Stability(Experimental)
        public static final SourceMapMode BOTH
        (experimental) Both sourceMap mode - If you want to have the effect of both inline and external simultaneously.
    • Method Detail

      • values

        public static SourceMapMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SourceMapMode c : SourceMapMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SourceMapMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null