|
1 | 1 | const defaultsDeep = require('lodash.defaultsdeep'); |
2 | 2 | var path = require('path'); |
3 | 3 | var webpack = require('webpack'); |
| 4 | +var fs = require('fs'); |
4 | 5 |
|
5 | 6 | // Plugins |
6 | 7 | var CopyWebpackPlugin = require('copy-webpack-plugin'); |
@@ -144,32 +145,37 @@ module.exports = [ |
144 | 145 | chunks: ['lib.min', 'gui'], |
145 | 146 | template: 'src/playground/index.ejs', |
146 | 147 | title: 'Smalruby', |
147 | | - sentryConfig: process.env.SENTRY_CONFIG ? '"' + process.env.SENTRY_CONFIG + '"' : null |
| 148 | + sentryConfig: process.env.SENTRY_CONFIG ? '"' + process.env.SENTRY_CONFIG + '"' : null, |
| 149 | + originTrials: JSON.parse(fs.readFileSync('origin-trials.json')) |
148 | 150 | }), |
149 | 151 | new HtmlWebpackPlugin({ |
150 | 152 | chunks: ['lib.min', 'gui'], |
151 | 153 | template: 'src/playground/index.ejs', |
152 | 154 | filename: 'ja.html', |
153 | 155 | title: 'スモウルビー', |
154 | | - sentryConfig: process.env.SENTRY_CONFIG ? '"' + process.env.SENTRY_CONFIG + '"' : null |
| 156 | + sentryConfig: process.env.SENTRY_CONFIG ? '"' + process.env.SENTRY_CONFIG + '"' : null, |
| 157 | + originTrials: JSON.parse(fs.readFileSync('origin-trials.json')) |
155 | 158 | }), |
156 | 159 | new HtmlWebpackPlugin({ |
157 | 160 | chunks: ['lib.min', 'blocksonly'], |
158 | 161 | template: 'src/playground/index.ejs', |
159 | 162 | filename: 'blocks-only.html', |
160 | | - title: 'Smalruby 3.0 GUI: Blocks Only Example' |
| 163 | + title: 'Smalruby 3.0 GUI: Blocks Only Example', |
| 164 | + originTrials: JSON.parse(fs.readFileSync('origin-trials.json')) |
161 | 165 | }), |
162 | 166 | new HtmlWebpackPlugin({ |
163 | 167 | chunks: ['lib.min', 'compatibilitytesting'], |
164 | 168 | template: 'src/playground/index.ejs', |
165 | 169 | filename: 'compatibility-testing.html', |
166 | | - title: 'Smalruby 3.0 GUI: Compatibility Testing' |
| 170 | + title: 'Smalruby 3.0 GUI: Compatibility Testing', |
| 171 | + originTrials: JSON.parse(fs.readFileSync('origin-trials.json')) |
167 | 172 | }), |
168 | 173 | new HtmlWebpackPlugin({ |
169 | 174 | chunks: ['lib.min', 'player'], |
170 | 175 | template: 'src/playground/index.ejs', |
171 | 176 | filename: 'player.html', |
172 | | - title: 'Smalruby 3.0 GUI: Player Example' |
| 177 | + title: 'Smalruby 3.0 GUI: Player Example', |
| 178 | + originTrials: JSON.parse(fs.readFileSync('origin-trials.json')) |
173 | 179 | }), |
174 | 180 | new CopyWebpackPlugin([{ |
175 | 181 | from: 'static', |
|
0 commit comments