-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of build changes and production JS build
- Loading branch information
1 parent
aca29f3
commit a27ce40
Showing
18 changed files
with
138 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
dev: { | ||
NODE_ENV : "development" | ||
}, | ||
dist: { | ||
NODE_ENV : "production" | ||
} | ||
}; |
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
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,3 +1,5 @@ | ||
module.exports = { | ||
default: require("./../webpack.config.js") | ||
dev: require("./../webpack.config.js"), | ||
|
||
dist: require("./../webpack.production.config.js") | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import $ from "jquery"; | ||
import pluginAutoLoader from "plugin-autoloader"; | ||
|
||
$().ready(function() { | ||
|
||
// Load any plugins automatically | ||
pluginAutoLoader.findPlugins(); | ||
}); | ||
|
||
export default { | ||
test: true | ||
}; |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/// <binding ProjectOpened="Watch - Development" /> | ||
/*eslint-env node*/ | ||
|
||
var webpack = require("webpack"); | ||
|
||
var appConfig = require("./webpack.config.js"); | ||
|
||
var prodPlugins = [ | ||
new webpack.optimize.OccurrenceOrderPlugin(true), | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
minimize: true, | ||
compress: { | ||
warnings: false | ||
}, | ||
mangle: { | ||
except: ["$super", "$", "exports", "require"] | ||
} | ||
}), | ||
new webpack.optimize.AggressiveMergingPlugin(), | ||
new webpack.DefinePlugin({ | ||
PRODUCTION: true | ||
}), | ||
new webpack.DefinePlugin({ | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("production") | ||
} | ||
}), | ||
new webpack.ProvidePlugin({ | ||
$: "jquery" | ||
}) | ||
]; | ||
|
||
appConfig.plugins = prodPlugins; | ||
|
||
module.exports = [ | ||
appConfig, | ||
{ | ||
name: "experience", | ||
entry: ["./src/javascripts/experience"], | ||
output: { | ||
path: "./dist/javascripts", | ||
filename: "experience.min.js", | ||
sourceMapFilename: "experience.min.map" | ||
}, | ||
module: appConfig.module, | ||
resolve: { | ||
modulesDirectories: ["./src/javascripts/"] | ||
}, | ||
externals: appConfig.externals, | ||
devtool: "#cheap-module-source-map", | ||
eslint: appConfig.eslint, | ||
plugins: prodPlugins | ||
} | ||
]; |