Move all distribution assets to separate folder
This commit is contained in:
1 parent
499e7e62e6
commit
d9b01a6b2f
2 files changed
+6
-3
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link href="bootstrap.min.css" rel="stylesheet" />
|
<link href="assets/bootstrap.min.css" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
input#serial_id, div#answer { font-family: monospace }
|
input#serial_id, div#answer { font-family: monospace }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+5
-2
@@ -24,7 +24,10 @@ function makeClosureCompiler() {
|
|||||||
var plugins = [
|
var plugins = [
|
||||||
new CleanWebpackPlugin(['dist']),
|
new CleanWebpackPlugin(['dist']),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{ from: 'assets/bootstrap.min.css'}
|
{
|
||||||
|
from: 'assets/bootstrap.min.css',
|
||||||
|
to: 'assets/'
|
||||||
|
}
|
||||||
]),
|
]),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
minify: {
|
minify: {
|
||||||
@@ -45,7 +48,7 @@ if (process.env.PRODUCTION) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
entry: "./src/ui.ts",
|
entry: "./src/ui.ts",
|
||||||
output: {
|
output: {
|
||||||
filename: "bundle.[hash].js",
|
filename: "assets/bundle.[hash].js",
|
||||||
path: path.join(__dirname, "dist")
|
path: path.join(__dirname, "dist")
|
||||||
},
|
},
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
|
|||||||
Reference in new issue
Block a user