-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import nodeExternals from 'webpack-node-externals' | ||
|
||
import { jsConfig, lessConfig } from './webpack.config.base' | ||
import { jsConfig } from './webpack.config.base' | ||
|
||
const config = jsConfig() | ||
|
||
const coreConfig = jsConfig() | ||
coreConfig.externals = [nodeExternals()] | ||
coreConfig.output.filename = '[name].core.js' | ||
|
||
const cssConfig = lessConfig() | ||
|
||
export default [config, coreConfig, cssConfig] | ||
export default [config, coreConfig] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
import ExtractTextPlugin from 'extract-text-webpack-plugin' | ||
|
||
import { jsConfig, lessConfig } from './webpack.config.base' | ||
import { jsConfig } from './webpack.config.base' | ||
|
||
const minConfig = jsConfig() | ||
minConfig.output.filename = '[name].min.js' | ||
|
||
const cssMinConfig = lessConfig() | ||
cssMinConfig.output.filename = '[name].min.css' | ||
cssMinConfig.plugins = [ new ExtractTextPlugin('[name].min.css') ] | ||
|
||
export default [minConfig, cssMinConfig] | ||
export default [minConfig] |